From 6188d44761bcfa4dab77a02f51097474e2403e9d Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Wed, 22 Nov 2023 11:16:26 -0500 Subject: [PATCH] feat: [telcoautomation] new module for telcoautomation (#10070) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: [telcoautomation] new module for telcoautomation * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- CHANGELOG.md | 1 - gapic-libraries-bom/pom.xml | 7 + generation/new_client/README.md | 14 + java-telcoautomation/.OwlBot.yaml | 36 + java-telcoautomation/.repo-metadata.json | 16 + java-telcoautomation/README.md | 225 + .../google-cloud-telcoautomation-bom/pom.xml | 54 + .../google-cloud-telcoautomation/pom.xml | 122 + .../v1/TelcoAutomationClient.java | 6435 ++++++++++++++++ .../v1/TelcoAutomationSettings.java | 747 ++ .../telcoautomation/v1/gapic_metadata.json | 132 + .../telcoautomation/v1/package-info.java | 47 + .../GrpcTelcoAutomationCallableFactory.java | 113 + .../v1/stub/GrpcTelcoAutomationStub.java | 1648 ++++ ...ttpJsonTelcoAutomationCallableFactory.java | 105 + .../v1/stub/HttpJsonTelcoAutomationStub.java | 2799 +++++++ .../v1/stub/TelcoAutomationStub.java | 371 + .../v1/stub/TelcoAutomationStubSettings.java | 2321 ++++++ .../v1alpha1/TelcoAutomationClient.java | 6680 +++++++++++++++++ .../v1alpha1/TelcoAutomationSettings.java | 782 ++ .../v1alpha1/gapic_metadata.json | 141 + .../v1alpha1/package-info.java | 47 + .../GrpcTelcoAutomationCallableFactory.java | 115 + .../stub/GrpcTelcoAutomationStub.java | 1770 +++++ ...ttpJsonTelcoAutomationCallableFactory.java | 105 + .../stub/HttpJsonTelcoAutomationStub.java | 2997 ++++++++ .../v1alpha1/stub/TelcoAutomationStub.java | 390 + .../stub/TelcoAutomationStubSettings.java | 2424 ++++++ .../reflect-config.json | 2621 +++++++ .../reflect-config.json | 2585 +++++++ .../telcoautomation/v1/MockLocations.java | 59 + .../telcoautomation/v1/MockLocationsImpl.java | 105 + .../v1/MockTelcoAutomation.java | 59 + .../v1/MockTelcoAutomationImpl.java | 829 ++ .../v1/TelcoAutomationClientHttpJsonTest.java | 4086 ++++++++++ .../v1/TelcoAutomationClientTest.java | 3594 +++++++++ .../v1alpha1/MockLocations.java | 59 + .../v1alpha1/MockLocationsImpl.java | 105 + .../v1alpha1/MockTelcoAutomation.java | 59 + .../v1alpha1/MockTelcoAutomationImpl.java | 892 +++ .../TelcoAutomationClientHttpJsonTest.java | 4245 +++++++++++ .../v1alpha1/TelcoAutomationClientTest.java | 3739 +++++++++ .../pom.xml | 45 + .../v1/TelcoAutomationGrpc.java | 4734 ++++++++++++ .../pom.xml | 45 + .../v1alpha1/TelcoAutomationGrpc.java | 5155 +++++++++++++ java-telcoautomation/owlbot.py | 36 + java-telcoautomation/pom.xml | 66 + .../clirr-ignored-differences.xml | 19 + .../pom.xml | 37 + .../v1/ApplyDeploymentRequest.java | 643 ++ .../v1/ApplyDeploymentRequestOrBuilder.java | 54 + .../v1/ApplyHydratedDeploymentRequest.java | 651 ++ ...plyHydratedDeploymentRequestOrBuilder.java | 54 + .../v1/ApproveBlueprintRequest.java | 646 ++ .../v1/ApproveBlueprintRequestOrBuilder.java | 56 + .../cloud/telcoautomation/v1/Blueprint.java | 4043 ++++++++++ .../telcoautomation/v1/BlueprintName.java | 269 + .../v1/BlueprintOrBuilder.java | 522 ++ .../telcoautomation/v1/BlueprintView.java | 178 + .../v1/ComputeDeploymentStatusRequest.java | 651 ++ ...mputeDeploymentStatusRequestOrBuilder.java | 54 + .../v1/ComputeDeploymentStatusResponse.java | 1356 ++++ ...puteDeploymentStatusResponseOrBuilder.java | 142 + .../v1/CreateBlueprintRequest.java | 1124 +++ .../v1/CreateBlueprintRequestOrBuilder.java | 124 + .../v1/CreateDeploymentRequest.java | 1124 +++ .../v1/CreateDeploymentRequestOrBuilder.java | 124 + .../v1/CreateEdgeSlmRequest.java | 1389 ++++ .../v1/CreateEdgeSlmRequestOrBuilder.java | 173 + .../v1/CreateOrchestrationClusterRequest.java | 1413 ++++ ...eOrchestrationClusterRequestOrBuilder.java | 174 + .../v1/DeleteBlueprintRequest.java | 660 ++ .../v1/DeleteBlueprintRequestOrBuilder.java | 60 + .../v1/DeleteEdgeSlmRequest.java | 905 +++ .../v1/DeleteEdgeSlmRequestOrBuilder.java | 103 + .../v1/DeleteOrchestrationClusterRequest.java | 917 +++ ...eOrchestrationClusterRequestOrBuilder.java | 103 + .../cloud/telcoautomation/v1/Deployment.java | 4210 +++++++++++ .../telcoautomation/v1/DeploymentLevel.java | 221 + .../telcoautomation/v1/DeploymentName.java | 269 + .../v1/DeploymentOrBuilder.java | 545 ++ .../telcoautomation/v1/DeploymentView.java | 178 + .../v1/DiscardBlueprintChangesRequest.java | 651 ++ ...scardBlueprintChangesRequestOrBuilder.java | 54 + .../v1/DiscardBlueprintChangesResponse.java | 443 ++ ...cardBlueprintChangesResponseOrBuilder.java | 24 + .../v1/DiscardDeploymentChangesRequest.java | 651 ++ ...cardDeploymentChangesRequestOrBuilder.java | 54 + .../v1/DiscardDeploymentChangesResponse.java | 443 ++ ...ardDeploymentChangesResponseOrBuilder.java | 24 + .../cloud/telcoautomation/v1/EdgeSlm.java | 2635 +++++++ .../cloud/telcoautomation/v1/EdgeSlmName.java | 223 + .../telcoautomation/v1/EdgeSlmOrBuilder.java | 307 + .../google/cloud/telcoautomation/v1/File.java | 1001 +++ .../telcoautomation/v1/FileOrBuilder.java | 104 + .../v1/FullManagementConfig.java | 2158 ++++++ .../v1/FullManagementConfigOrBuilder.java | 279 + .../v1/GetBlueprintRequest.java | 842 +++ .../v1/GetBlueprintRequestOrBuilder.java | 93 + .../v1/GetDeploymentRequest.java | 851 +++ .../v1/GetDeploymentRequestOrBuilder.java | 95 + .../telcoautomation/v1/GetEdgeSlmRequest.java | 639 ++ .../v1/GetEdgeSlmRequestOrBuilder.java | 54 + .../v1/GetHydratedDeploymentRequest.java | 646 ++ ...GetHydratedDeploymentRequestOrBuilder.java | 54 + .../v1/GetOrchestrationClusterRequest.java | 651 ++ ...tOrchestrationClusterRequestOrBuilder.java | 54 + .../v1/GetPublicBlueprintRequest.java | 643 ++ .../GetPublicBlueprintRequestOrBuilder.java | 54 + .../v1/HydratedDeployment.java | 1756 +++++ .../v1/HydratedDeploymentName.java | 308 + .../v1/HydratedDeploymentOrBuilder.java | 183 + .../telcoautomation/v1/HydrationStatus.java | 915 +++ .../v1/HydrationStatusOrBuilder.java | 91 + .../v1/ListBlueprintRevisionsRequest.java | 930 +++ ...istBlueprintRevisionsRequestOrBuilder.java | 94 + .../v1/ListBlueprintRevisionsResponse.java | 1140 +++ ...stBlueprintRevisionsResponseOrBuilder.java | 104 + .../v1/ListBlueprintsRequest.java | 1131 +++ .../v1/ListBlueprintsRequestOrBuilder.java | 127 + .../v1/ListBlueprintsResponse.java | 1128 +++ .../v1/ListBlueprintsResponseOrBuilder.java | 104 + .../v1/ListDeploymentRevisionsRequest.java | 933 +++ ...stDeploymentRevisionsRequestOrBuilder.java | 94 + .../v1/ListDeploymentRevisionsResponse.java | 1141 +++ ...tDeploymentRevisionsResponseOrBuilder.java | 104 + .../v1/ListDeploymentsRequest.java | 1131 +++ .../v1/ListDeploymentsRequestOrBuilder.java | 127 + .../v1/ListDeploymentsResponse.java | 1129 +++ .../v1/ListDeploymentsResponseOrBuilder.java | 104 + .../v1/ListEdgeSlmsRequest.java | 1282 ++++ .../v1/ListEdgeSlmsRequestOrBuilder.java | 143 + .../v1/ListEdgeSlmsResponse.java | 1396 ++++ .../v1/ListEdgeSlmsResponseOrBuilder.java | 153 + .../v1/ListHydratedDeploymentsRequest.java | 945 +++ ...stHydratedDeploymentsRequestOrBuilder.java | 97 + .../v1/ListHydratedDeploymentsResponse.java | 1182 +++ ...tHydratedDeploymentsResponseOrBuilder.java | 111 + .../v1/ListOrchestrationClustersRequest.java | 1294 ++++ ...OrchestrationClustersRequestOrBuilder.java | 143 + .../v1/ListOrchestrationClustersResponse.java | 1481 ++++ ...rchestrationClustersResponseOrBuilder.java | 165 + .../v1/ListPublicBlueprintsRequest.java | 939 +++ .../ListPublicBlueprintsRequestOrBuilder.java | 97 + .../v1/ListPublicBlueprintsResponse.java | 1149 +++ ...ListPublicBlueprintsResponseOrBuilder.java | 105 + .../telcoautomation/v1/LocationName.java | 192 + .../telcoautomation/v1/ManagementConfig.java | 1175 +++ .../v1/ManagementConfigOrBuilder.java | 105 + .../v1/MasterAuthorizedNetworksConfig.java | 1975 +++++ ...sterAuthorizedNetworksConfigOrBuilder.java | 97 + .../v1/NFDeploySiteStatus.java | 1298 ++++ .../v1/NFDeploySiteStatusOrBuilder.java | 145 + .../telcoautomation/v1/NFDeployStatus.java | 1182 +++ .../v1/NFDeployStatusOrBuilder.java | 114 + .../telcoautomation/v1/OperationMetadata.java | 1829 +++++ .../v1/OperationMetadataOrBuilder.java | 218 + .../v1/OrchestrationCluster.java | 2357 ++++++ .../v1/OrchestrationClusterName.java | 232 + .../v1/OrchestrationClusterOrBuilder.java | 275 + .../v1/ProposeBlueprintRequest.java | 639 ++ .../v1/ProposeBlueprintRequestOrBuilder.java | 54 + .../telcoautomation/v1/PublicBlueprint.java | 1440 ++++ .../v1/PublicBlueprintName.java | 227 + .../v1/PublicBlueprintOrBuilder.java | 166 + .../v1/RejectBlueprintRequest.java | 639 ++ .../v1/RejectBlueprintRequestOrBuilder.java | 54 + .../v1/RemoveDeploymentRequest.java | 639 ++ .../v1/RemoveDeploymentRequestOrBuilder.java | 54 + .../telcoautomation/v1/ResourceStatus.java | 1972 +++++ .../v1/ResourceStatusOrBuilder.java | 249 + .../telcoautomation/v1/ResourceType.java | 178 + .../v1/RollbackDeploymentRequest.java | 825 ++ .../RollbackDeploymentRequestOrBuilder.java | 79 + .../v1/SearchBlueprintRevisionsRequest.java | 1175 +++ ...rchBlueprintRevisionsRequestOrBuilder.java | 136 + .../v1/SearchBlueprintRevisionsResponse.java | 1140 +++ ...chBlueprintRevisionsResponseOrBuilder.java | 104 + .../v1/SearchDeploymentRevisionsRequest.java | 1182 +++ ...chDeploymentRevisionsRequestOrBuilder.java | 138 + .../v1/SearchDeploymentRevisionsResponse.java | 1141 +++ ...hDeploymentRevisionsResponseOrBuilder.java | 104 + .../cloud/telcoautomation/v1/SiteVersion.java | 988 +++ .../v1/SiteVersionOrBuilder.java | 100 + .../v1/StandardManagementConfig.java | 2169 ++++++ .../v1/StandardManagementConfigOrBuilder.java | 281 + .../cloud/telcoautomation/v1/Status.java | 266 + .../v1/TelcoautomationProto.java | 1604 ++++ .../v1/UpdateBlueprintRequest.java | 1015 +++ .../v1/UpdateBlueprintRequestOrBuilder.java | 107 + .../v1/UpdateDeploymentRequest.java | 1015 +++ .../v1/UpdateDeploymentRequestOrBuilder.java | 107 + .../v1/UpdateHydratedDeploymentRequest.java | 1037 +++ ...ateHydratedDeploymentRequestOrBuilder.java | 107 + .../telcoautomation/v1/WorkloadStatus.java | 915 +++ .../v1/WorkloadStatusOrBuilder.java | 91 + .../telcoautomation/v1/telcoautomation.proto | 1912 +++++ .../clirr-ignored-differences.xml | 19 + .../pom.xml | 37 + .../v1alpha1/ApplyDeploymentRequest.java | 650 ++ .../ApplyDeploymentRequestOrBuilder.java | 54 + .../ApplyHydratedDeploymentRequest.java | 656 ++ ...plyHydratedDeploymentRequestOrBuilder.java | 54 + .../v1alpha1/ApproveBlueprintRequest.java | 655 ++ .../ApproveBlueprintRequestOrBuilder.java | 56 + .../telcoautomation/v1alpha1/Blueprint.java | 3778 ++++++++++ .../v1alpha1/BlueprintName.java | 269 + .../v1alpha1/BlueprintOrBuilder.java | 477 ++ .../v1alpha1/BlueprintView.java | 178 + .../ComputeDeploymentStatusRequest.java | 656 ++ ...mputeDeploymentStatusRequestOrBuilder.java | 54 + .../ComputeDeploymentStatusResponse.java | 1373 ++++ ...puteDeploymentStatusResponseOrBuilder.java | 143 + .../v1alpha1/CreateBlueprintRequest.java | 1132 +++ .../CreateBlueprintRequestOrBuilder.java | 124 + .../v1alpha1/CreateDeploymentRequest.java | 1134 +++ .../CreateDeploymentRequestOrBuilder.java | 124 + .../v1alpha1/CreateEdgeSlmRequest.java | 1396 ++++ .../CreateEdgeSlmRequestOrBuilder.java | 173 + .../CreateOrchestrationClusterRequest.java | 1427 ++++ ...eOrchestrationClusterRequestOrBuilder.java | 174 + .../v1alpha1/DeleteBlueprintRequest.java | 667 ++ .../DeleteBlueprintRequestOrBuilder.java | 60 + .../DeleteBlueprintRevisionRequest.java | 663 ++ ...leteBlueprintRevisionRequestOrBuilder.java | 56 + .../v1alpha1/DeleteDeploymentRequest.java | 648 ++ .../DeleteDeploymentRequestOrBuilder.java | 54 + .../DeleteDeploymentRevisionRequest.java | 665 ++ ...eteDeploymentRevisionRequestOrBuilder.java | 56 + .../v1alpha1/DeleteEdgeSlmRequest.java | 911 +++ .../DeleteEdgeSlmRequestOrBuilder.java | 103 + .../DeleteOrchestrationClusterRequest.java | 929 +++ ...eOrchestrationClusterRequestOrBuilder.java | 103 + .../telcoautomation/v1alpha1/Deployment.java | 3743 +++++++++ .../v1alpha1/DeploymentName.java | 269 + .../v1alpha1/DeploymentOrBuilder.java | 477 ++ .../v1alpha1/DeploymentView.java | 178 + .../DiscardBlueprintChangesRequest.java | 656 ++ ...scardBlueprintChangesRequestOrBuilder.java | 54 + .../DiscardBlueprintChangesResponse.java | 450 ++ ...cardBlueprintChangesResponseOrBuilder.java | 24 + .../DiscardDeploymentChangesRequest.java | 658 ++ ...cardDeploymentChangesRequestOrBuilder.java | 54 + .../DiscardDeploymentChangesResponse.java | 455 ++ ...ardDeploymentChangesResponseOrBuilder.java | 24 + .../telcoautomation/v1alpha1/EdgeSlm.java | 2645 +++++++ .../telcoautomation/v1alpha1/EdgeSlmName.java | 223 + .../v1alpha1/EdgeSlmOrBuilder.java | 307 + .../cloud/telcoautomation/v1alpha1/File.java | 1002 +++ .../v1alpha1/FileOrBuilder.java | 104 + .../v1alpha1/FullManagementConfig.java | 2166 ++++++ .../FullManagementConfigOrBuilder.java | 279 + .../v1alpha1/GetBlueprintRequest.java | 848 +++ .../GetBlueprintRequestOrBuilder.java | 93 + .../v1alpha1/GetDeploymentRequest.java | 857 +++ .../GetDeploymentRequestOrBuilder.java | 95 + .../v1alpha1/GetEdgeSlmRequest.java | 639 ++ .../v1alpha1/GetEdgeSlmRequestOrBuilder.java | 54 + .../GetHydratedDeploymentRequest.java | 651 ++ ...GetHydratedDeploymentRequestOrBuilder.java | 54 + .../GetOrchestrationClusterRequest.java | 656 ++ ...tOrchestrationClusterRequestOrBuilder.java | 54 + .../v1alpha1/GetPublicBlueprintRequest.java | 650 ++ .../GetPublicBlueprintRequestOrBuilder.java | 54 + .../v1alpha1/HydratedDeployment.java | 1763 +++++ .../v1alpha1/HydratedDeploymentName.java | 308 + .../v1alpha1/HydratedDeploymentOrBuilder.java | 183 + .../ListBlueprintRevisionsRequest.java | 936 +++ ...istBlueprintRevisionsRequestOrBuilder.java | 94 + .../ListBlueprintRevisionsResponse.java | 1153 +++ ...stBlueprintRevisionsResponseOrBuilder.java | 104 + .../v1alpha1/ListBlueprintsRequest.java | 1138 +++ .../ListBlueprintsRequestOrBuilder.java | 127 + .../v1alpha1/ListBlueprintsResponse.java | 1143 +++ .../ListBlueprintsResponseOrBuilder.java | 104 + .../ListDeploymentRevisionsRequest.java | 938 +++ ...stDeploymentRevisionsRequestOrBuilder.java | 94 + .../ListDeploymentRevisionsResponse.java | 1156 +++ ...tDeploymentRevisionsResponseOrBuilder.java | 104 + .../v1alpha1/ListDeploymentsRequest.java | 1138 +++ .../ListDeploymentsRequestOrBuilder.java | 127 + .../v1alpha1/ListDeploymentsResponse.java | 1146 +++ .../ListDeploymentsResponseOrBuilder.java | 104 + .../v1alpha1/ListEdgeSlmsRequest.java | 1286 ++++ .../ListEdgeSlmsRequestOrBuilder.java | 143 + .../v1alpha1/ListEdgeSlmsResponse.java | 1407 ++++ .../ListEdgeSlmsResponseOrBuilder.java | 153 + .../ListHydratedDeploymentsRequest.java | 950 +++ ...stHydratedDeploymentsRequestOrBuilder.java | 97 + .../ListHydratedDeploymentsResponse.java | 1219 +++ ...tHydratedDeploymentsResponseOrBuilder.java | 116 + .../ListOrchestrationClustersRequest.java | 1306 ++++ ...OrchestrationClustersRequestOrBuilder.java | 143 + .../ListOrchestrationClustersResponse.java | 1495 ++++ ...rchestrationClustersResponseOrBuilder.java | 166 + .../v1alpha1/ListPublicBlueprintsRequest.java | 943 +++ .../ListPublicBlueprintsRequestOrBuilder.java | 97 + .../ListPublicBlueprintsResponse.java | 1187 +++ ...ListPublicBlueprintsResponseOrBuilder.java | 111 + .../v1alpha1/LocationName.java | 192 + .../v1alpha1/ManagementConfig.java | 1191 +++ .../v1alpha1/ManagementConfigOrBuilder.java | 111 + .../MasterAuthorizedNetworksConfig.java | 2002 +++++ ...sterAuthorizedNetworksConfigOrBuilder.java | 98 + .../v1alpha1/OperationMetadata.java | 1829 +++++ .../v1alpha1/OperationMetadataOrBuilder.java | 218 + .../v1alpha1/OrchestrationCluster.java | 2359 ++++++ .../v1alpha1/OrchestrationClusterName.java | 232 + .../OrchestrationClusterOrBuilder.java | 274 + .../v1alpha1/ProposeBlueprintRequest.java | 648 ++ .../ProposeBlueprintRequestOrBuilder.java | 54 + .../v1alpha1/PublicBlueprint.java | 1541 ++++ .../v1alpha1/PublicBlueprintName.java | 227 + .../v1alpha1/PublicBlueprintOrBuilder.java | 156 + .../v1alpha1/RejectBlueprintRequest.java | 646 ++ .../RejectBlueprintRequestOrBuilder.java | 54 + .../v1alpha1/RemoveDeploymentRequest.java | 648 ++ .../RemoveDeploymentRequestOrBuilder.java | 54 + .../v1alpha1/ResourceStatus.java | 1689 +++++ .../v1alpha1/ResourceStatusOrBuilder.java | 208 + .../v1alpha1/ResourceType.java | 178 + .../v1alpha1/RollbackDeploymentRequest.java | 832 ++ .../RollbackDeploymentRequestOrBuilder.java | 79 + .../SearchBlueprintRevisionsRequest.java | 1182 +++ ...rchBlueprintRevisionsRequestOrBuilder.java | 136 + .../SearchBlueprintRevisionsResponse.java | 1160 +++ ...chBlueprintRevisionsResponseOrBuilder.java | 104 + .../SearchDeploymentRevisionsRequest.java | 1194 +++ ...chDeploymentRevisionsRequestOrBuilder.java | 138 + .../SearchDeploymentRevisionsResponse.java | 1161 +++ ...hDeploymentRevisionsResponseOrBuilder.java | 104 + .../v1alpha1/StandardManagementConfig.java | 2171 ++++++ .../StandardManagementConfigOrBuilder.java | 279 + .../telcoautomation/v1alpha1/Status.java | 222 + .../v1alpha1/TelcoautomationProto.java | 1581 ++++ .../v1alpha1/UpdateBlueprintRequest.java | 1023 +++ .../UpdateBlueprintRequestOrBuilder.java | 107 + .../v1alpha1/UpdateDeploymentRequest.java | 1025 +++ .../UpdateDeploymentRequestOrBuilder.java | 107 + .../UpdateHydratedDeploymentRequest.java | 1045 +++ ...ateHydratedDeploymentRequestOrBuilder.java | 108 + .../v1alpha1/telcoautomation.proto | 1863 +++++ .../SyncGetOrchestrationCluster.java | 49 + .../applydeployment/AsyncApplyDeployment.java | 53 + .../applydeployment/SyncApplyDeployment.java | 49 + .../SyncApplyDeploymentDeploymentname.java | 43 + .../SyncApplyDeploymentString.java | 44 + .../AsyncApplyHydratedDeployment.java | 57 + .../SyncApplyHydratedDeployment.java | 53 + ...ratedDeploymentHydrateddeploymentname.java | 48 + .../SyncApplyHydratedDeploymentString.java | 49 + .../AsyncApproveBlueprint.java | 53 + .../SyncApproveBlueprint.java | 49 + .../SyncApproveBlueprintBlueprintname.java | 43 + .../SyncApproveBlueprintString.java | 44 + .../AsyncComputeDeploymentStatus.java | 53 + .../SyncComputeDeploymentStatus.java | 50 + ...ComputeDeploymentStatusDeploymentname.java | 44 + .../SyncComputeDeploymentStatusString.java | 45 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../createblueprint/AsyncCreateBlueprint.java | 54 + .../createblueprint/SyncCreateBlueprint.java | 50 + ...chestrationclusternameBlueprintString.java | 45 + ...cCreateBlueprintStringBlueprintString.java | 46 + .../AsyncCreateDeployment.java | 54 + .../SyncCreateDeployment.java | 50 + ...hestrationclusternameDeploymentString.java | 47 + ...reateDeploymentStringDeploymentString.java | 47 + .../createedgeslm/AsyncCreateEdgeSlm.java | 54 + .../createedgeslm/AsyncCreateEdgeSlmLRO.java | 54 + .../createedgeslm/SyncCreateEdgeSlm.java | 49 + ...reateEdgeSlmLocationnameEdgeslmString.java | 44 + .../SyncCreateEdgeSlmStringEdgeslmString.java | 44 + .../AsyncCreateOrchestrationCluster.java | 54 + .../AsyncCreateOrchestrationClusterLRO.java | 54 + .../SyncCreateOrchestrationCluster.java | 50 + ...ocationnameOrchestrationclusterString.java | 48 + ...usterStringOrchestrationclusterString.java | 48 + .../deleteblueprint/AsyncDeleteBlueprint.java | 52 + .../deleteblueprint/SyncDeleteBlueprint.java | 49 + .../SyncDeleteBlueprintBlueprintname.java | 43 + .../SyncDeleteBlueprintString.java | 44 + .../deleteedgeslm/AsyncDeleteEdgeSlm.java | 51 + .../deleteedgeslm/AsyncDeleteEdgeSlmLRO.java | 52 + .../deleteedgeslm/SyncDeleteEdgeSlm.java | 47 + .../SyncDeleteEdgeSlmEdgeslmname.java | 42 + .../SyncDeleteEdgeSlmString.java | 42 + .../AsyncDeleteOrchestrationCluster.java | 53 + .../AsyncDeleteOrchestrationClusterLRO.java | 54 + .../SyncDeleteOrchestrationCluster.java | 49 + ...rationClusterOrchestrationclustername.java | 43 + .../SyncDeleteOrchestrationClusterString.java | 44 + .../AsyncDiscardBlueprintChanges.java | 53 + .../SyncDiscardBlueprintChanges.java | 50 + ...cDiscardBlueprintChangesBlueprintname.java | 44 + .../SyncDiscardBlueprintChangesString.java | 45 + .../AsyncDiscardDeploymentChanges.java | 53 + .../SyncDiscardDeploymentChanges.java | 50 + ...iscardDeploymentChangesDeploymentname.java | 44 + .../SyncDiscardDeploymentChangesString.java | 45 + .../getblueprint/AsyncGetBlueprint.java | 55 + .../getblueprint/SyncGetBlueprint.java | 51 + .../SyncGetBlueprintBlueprintname.java | 43 + .../getblueprint/SyncGetBlueprintString.java | 44 + .../getdeployment/AsyncGetDeployment.java | 55 + .../getdeployment/SyncGetDeployment.java | 51 + .../SyncGetDeploymentDeploymentname.java | 43 + .../SyncGetDeploymentString.java | 44 + .../getedgeslm/AsyncGetEdgeSlm.java | 49 + .../getedgeslm/SyncGetEdgeSlm.java | 46 + .../getedgeslm/SyncGetEdgeSlmEdgeslmname.java | 42 + .../getedgeslm/SyncGetEdgeSlmString.java | 42 + .../AsyncGetHydratedDeployment.java | 57 + .../SyncGetHydratedDeployment.java | 53 + ...ratedDeploymentHydrateddeploymentname.java | 48 + .../SyncGetHydratedDeploymentString.java | 49 + .../getlocation/AsyncGetLocation.java | 45 + .../getlocation/SyncGetLocation.java | 42 + .../AsyncGetOrchestrationCluster.java | 52 + .../SyncGetOrchestrationCluster.java | 48 + ...rationClusterOrchestrationclustername.java | 43 + .../SyncGetOrchestrationClusterString.java | 44 + .../AsyncGetPublicBlueprint.java | 51 + .../SyncGetPublicBlueprint.java | 47 + ...GetPublicBlueprintPublicblueprintname.java | 43 + .../SyncGetPublicBlueprintString.java | 43 + .../AsyncListBlueprintRevisions.java | 57 + .../AsyncListBlueprintRevisionsPaged.java | 65 + .../SyncListBlueprintRevisions.java | 53 + ...ncListBlueprintRevisionsBlueprintname.java | 45 + .../SyncListBlueprintRevisionsString.java | 46 + .../listblueprints/AsyncListBlueprints.java | 57 + .../AsyncListBlueprintsPaged.java | 65 + .../listblueprints/SyncListBlueprints.java | 53 + ...istBlueprintsOrchestrationclustername.java | 45 + .../SyncListBlueprintsString.java | 46 + .../AsyncListDeploymentRevisions.java | 57 + .../AsyncListDeploymentRevisionsPaged.java | 65 + .../SyncListDeploymentRevisions.java | 54 + ...ListDeploymentRevisionsDeploymentname.java | 45 + .../SyncListDeploymentRevisionsString.java | 46 + .../listdeployments/AsyncListDeployments.java | 57 + .../AsyncListDeploymentsPaged.java | 65 + .../listdeployments/SyncListDeployments.java | 53 + ...stDeploymentsOrchestrationclustername.java | 45 + .../SyncListDeploymentsString.java | 46 + .../listedgeslms/AsyncListEdgeSlms.java | 56 + .../listedgeslms/AsyncListEdgeSlmsPaged.java | 63 + .../listedgeslms/SyncListEdgeSlms.java | 52 + .../SyncListEdgeSlmsLocationname.java | 44 + .../listedgeslms/SyncListEdgeSlmsString.java | 44 + .../AsyncListHydratedDeployments.java | 57 + .../AsyncListHydratedDeploymentsPaged.java | 65 + .../SyncListHydratedDeployments.java | 54 + ...ListHydratedDeploymentsDeploymentname.java | 46 + .../SyncListHydratedDeploymentsString.java | 47 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 62 + .../listlocations/SyncListLocations.java | 50 + .../AsyncListOrchestrationClusters.java | 56 + .../AsyncListOrchestrationClustersPaged.java | 64 + .../SyncListOrchestrationClusters.java | 53 + ...ListOrchestrationClustersLocationname.java | 45 + .../SyncListOrchestrationClustersString.java | 45 + .../AsyncListPublicBlueprints.java | 54 + .../AsyncListPublicBlueprintsPaged.java | 62 + .../SyncListPublicBlueprints.java | 51 + .../SyncListPublicBlueprintsLocationname.java | 45 + .../SyncListPublicBlueprintsString.java | 45 + .../AsyncProposeBlueprint.java | 53 + .../SyncProposeBlueprint.java | 49 + .../SyncProposeBlueprintBlueprintname.java | 43 + .../SyncProposeBlueprintString.java | 44 + .../rejectblueprint/AsyncRejectBlueprint.java | 53 + .../rejectblueprint/SyncRejectBlueprint.java | 49 + .../SyncRejectBlueprintBlueprintname.java | 43 + .../SyncRejectBlueprintString.java | 44 + .../AsyncRemoveDeployment.java | 53 + .../SyncRemoveDeployment.java | 49 + .../SyncRemoveDeploymentDeploymentname.java | 43 + .../SyncRemoveDeploymentString.java | 44 + .../AsyncRollbackDeployment.java | 54 + .../SyncRollbackDeployment.java | 50 + ...ollbackDeploymentDeploymentnameString.java | 44 + .../SyncRollbackDeploymentStringString.java | 45 + .../AsyncSearchBlueprintRevisions.java | 57 + .../AsyncSearchBlueprintRevisionsPaged.java | 65 + .../SyncSearchBlueprintRevisions.java | 54 + ...visionsOrchestrationclusternameString.java | 47 + ...cSearchBlueprintRevisionsStringString.java | 48 + .../AsyncSearchDeploymentRevisions.java | 57 + .../AsyncSearchDeploymentRevisionsPaged.java | 65 + .../SyncSearchDeploymentRevisions.java | 54 + ...visionsOrchestrationclusternameString.java | 48 + ...SearchDeploymentRevisionsStringString.java | 48 + .../updateblueprint/AsyncUpdateBlueprint.java | 51 + .../updateblueprint/SyncUpdateBlueprint.java | 47 + ...SyncUpdateBlueprintBlueprintFieldmask.java | 43 + .../AsyncUpdateDeployment.java | 51 + .../SyncUpdateDeployment.java | 47 + ...ncUpdateDeploymentDeploymentFieldmask.java | 43 + .../AsyncUpdateHydratedDeployment.java | 51 + .../SyncUpdateHydratedDeployment.java | 47 + ...DeploymentHydrateddeploymentFieldmask.java | 44 + .../SyncGetOrchestrationCluster.java | 49 + .../SyncGetOrchestrationCluster.java | 49 + .../applydeployment/AsyncApplyDeployment.java | 53 + .../applydeployment/SyncApplyDeployment.java | 49 + .../SyncApplyDeploymentDeploymentname.java | 43 + .../SyncApplyDeploymentString.java | 44 + .../AsyncApplyHydratedDeployment.java | 57 + .../SyncApplyHydratedDeployment.java | 53 + ...ratedDeploymentHydrateddeploymentname.java | 48 + .../SyncApplyHydratedDeploymentString.java | 49 + .../AsyncApproveBlueprint.java | 53 + .../SyncApproveBlueprint.java | 49 + .../SyncApproveBlueprintBlueprintname.java | 43 + .../SyncApproveBlueprintString.java | 44 + .../AsyncComputeDeploymentStatus.java | 53 + .../SyncComputeDeploymentStatus.java | 50 + ...ComputeDeploymentStatusDeploymentname.java | 44 + .../SyncComputeDeploymentStatusString.java | 45 + .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../createblueprint/AsyncCreateBlueprint.java | 54 + .../createblueprint/SyncCreateBlueprint.java | 50 + ...chestrationclusternameBlueprintString.java | 45 + ...cCreateBlueprintStringBlueprintString.java | 46 + .../AsyncCreateDeployment.java | 54 + .../SyncCreateDeployment.java | 50 + ...hestrationclusternameDeploymentString.java | 47 + ...reateDeploymentStringDeploymentString.java | 47 + .../createedgeslm/AsyncCreateEdgeSlm.java | 54 + .../createedgeslm/AsyncCreateEdgeSlmLRO.java | 54 + .../createedgeslm/SyncCreateEdgeSlm.java | 49 + ...reateEdgeSlmLocationnameEdgeslmString.java | 44 + .../SyncCreateEdgeSlmStringEdgeslmString.java | 44 + .../AsyncCreateOrchestrationCluster.java | 54 + .../AsyncCreateOrchestrationClusterLRO.java | 54 + .../SyncCreateOrchestrationCluster.java | 50 + ...ocationnameOrchestrationclusterString.java | 48 + ...usterStringOrchestrationclusterString.java | 48 + .../deleteblueprint/AsyncDeleteBlueprint.java | 52 + .../deleteblueprint/SyncDeleteBlueprint.java | 49 + .../SyncDeleteBlueprintBlueprintname.java | 43 + .../SyncDeleteBlueprintString.java | 44 + .../AsyncDeleteBlueprintRevision.java | 53 + .../SyncDeleteBlueprintRevision.java | 49 + .../AsyncDeleteDeployment.java | 53 + .../SyncDeleteDeployment.java | 49 + .../SyncDeleteDeploymentDeploymentname.java | 43 + .../SyncDeleteDeploymentString.java | 44 + .../AsyncDeleteDeploymentRevision.java | 53 + .../SyncDeleteDeploymentRevision.java | 49 + .../deleteedgeslm/AsyncDeleteEdgeSlm.java | 51 + .../deleteedgeslm/AsyncDeleteEdgeSlmLRO.java | 52 + .../deleteedgeslm/SyncDeleteEdgeSlm.java | 47 + .../SyncDeleteEdgeSlmEdgeslmname.java | 42 + .../SyncDeleteEdgeSlmString.java | 42 + .../AsyncDeleteOrchestrationCluster.java | 53 + .../AsyncDeleteOrchestrationClusterLRO.java | 54 + .../SyncDeleteOrchestrationCluster.java | 49 + ...rationClusterOrchestrationclustername.java | 43 + .../SyncDeleteOrchestrationClusterString.java | 44 + .../AsyncDiscardBlueprintChanges.java | 53 + .../SyncDiscardBlueprintChanges.java | 50 + ...cDiscardBlueprintChangesBlueprintname.java | 44 + .../SyncDiscardBlueprintChangesString.java | 45 + .../AsyncDiscardDeploymentChanges.java | 53 + .../SyncDiscardDeploymentChanges.java | 50 + ...iscardDeploymentChangesDeploymentname.java | 44 + .../SyncDiscardDeploymentChangesString.java | 45 + .../getblueprint/AsyncGetBlueprint.java | 55 + .../getblueprint/SyncGetBlueprint.java | 51 + .../SyncGetBlueprintBlueprintname.java | 43 + .../getblueprint/SyncGetBlueprintString.java | 44 + .../getdeployment/AsyncGetDeployment.java | 55 + .../getdeployment/SyncGetDeployment.java | 51 + .../SyncGetDeploymentDeploymentname.java | 43 + .../SyncGetDeploymentString.java | 44 + .../getedgeslm/AsyncGetEdgeSlm.java | 49 + .../getedgeslm/SyncGetEdgeSlm.java | 46 + .../getedgeslm/SyncGetEdgeSlmEdgeslmname.java | 42 + .../getedgeslm/SyncGetEdgeSlmString.java | 42 + .../AsyncGetHydratedDeployment.java | 57 + .../SyncGetHydratedDeployment.java | 53 + ...ratedDeploymentHydrateddeploymentname.java | 48 + .../SyncGetHydratedDeploymentString.java | 49 + .../getlocation/AsyncGetLocation.java | 45 + .../getlocation/SyncGetLocation.java | 42 + .../AsyncGetOrchestrationCluster.java | 52 + .../SyncGetOrchestrationCluster.java | 48 + ...rationClusterOrchestrationclustername.java | 43 + .../SyncGetOrchestrationClusterString.java | 44 + .../AsyncGetPublicBlueprint.java | 51 + .../SyncGetPublicBlueprint.java | 47 + ...GetPublicBlueprintPublicblueprintname.java | 43 + .../SyncGetPublicBlueprintString.java | 43 + .../AsyncListBlueprintRevisions.java | 57 + .../AsyncListBlueprintRevisionsPaged.java | 65 + .../SyncListBlueprintRevisions.java | 53 + ...ncListBlueprintRevisionsBlueprintname.java | 45 + .../SyncListBlueprintRevisionsString.java | 46 + .../listblueprints/AsyncListBlueprints.java | 57 + .../AsyncListBlueprintsPaged.java | 65 + .../listblueprints/SyncListBlueprints.java | 53 + ...istBlueprintsOrchestrationclustername.java | 45 + .../SyncListBlueprintsString.java | 46 + .../AsyncListDeploymentRevisions.java | 57 + .../AsyncListDeploymentRevisionsPaged.java | 65 + .../SyncListDeploymentRevisions.java | 54 + ...ListDeploymentRevisionsDeploymentname.java | 45 + .../SyncListDeploymentRevisionsString.java | 46 + .../listdeployments/AsyncListDeployments.java | 57 + .../AsyncListDeploymentsPaged.java | 65 + .../listdeployments/SyncListDeployments.java | 53 + ...stDeploymentsOrchestrationclustername.java | 45 + .../SyncListDeploymentsString.java | 46 + .../listedgeslms/AsyncListEdgeSlms.java | 56 + .../listedgeslms/AsyncListEdgeSlmsPaged.java | 63 + .../listedgeslms/SyncListEdgeSlms.java | 52 + .../SyncListEdgeSlmsLocationname.java | 44 + .../listedgeslms/SyncListEdgeSlmsString.java | 44 + .../AsyncListHydratedDeployments.java | 57 + .../AsyncListHydratedDeploymentsPaged.java | 65 + .../SyncListHydratedDeployments.java | 54 + ...ListHydratedDeploymentsDeploymentname.java | 46 + .../SyncListHydratedDeploymentsString.java | 47 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 62 + .../listlocations/SyncListLocations.java | 50 + .../AsyncListOrchestrationClusters.java | 56 + .../AsyncListOrchestrationClustersPaged.java | 64 + .../SyncListOrchestrationClusters.java | 53 + ...ListOrchestrationClustersLocationname.java | 45 + .../SyncListOrchestrationClustersString.java | 45 + .../AsyncListPublicBlueprints.java | 54 + .../AsyncListPublicBlueprintsPaged.java | 62 + .../SyncListPublicBlueprints.java | 51 + .../SyncListPublicBlueprintsLocationname.java | 45 + .../SyncListPublicBlueprintsString.java | 45 + .../AsyncProposeBlueprint.java | 53 + .../SyncProposeBlueprint.java | 49 + .../SyncProposeBlueprintBlueprintname.java | 43 + .../SyncProposeBlueprintString.java | 44 + .../rejectblueprint/AsyncRejectBlueprint.java | 53 + .../rejectblueprint/SyncRejectBlueprint.java | 49 + .../SyncRejectBlueprintBlueprintname.java | 43 + .../SyncRejectBlueprintString.java | 44 + .../AsyncRemoveDeployment.java | 53 + .../SyncRemoveDeployment.java | 49 + .../SyncRemoveDeploymentDeploymentname.java | 43 + .../SyncRemoveDeploymentString.java | 44 + .../AsyncRollbackDeployment.java | 54 + .../SyncRollbackDeployment.java | 50 + ...ollbackDeploymentDeploymentnameString.java | 44 + .../SyncRollbackDeploymentStringString.java | 45 + .../AsyncSearchBlueprintRevisions.java | 57 + .../AsyncSearchBlueprintRevisionsPaged.java | 65 + .../SyncSearchBlueprintRevisions.java | 54 + ...visionsOrchestrationclusternameString.java | 47 + ...cSearchBlueprintRevisionsStringString.java | 48 + .../AsyncSearchDeploymentRevisions.java | 57 + .../AsyncSearchDeploymentRevisionsPaged.java | 65 + .../SyncSearchDeploymentRevisions.java | 54 + ...visionsOrchestrationclusternameString.java | 48 + ...SearchDeploymentRevisionsStringString.java | 48 + .../updateblueprint/AsyncUpdateBlueprint.java | 51 + .../updateblueprint/SyncUpdateBlueprint.java | 47 + ...SyncUpdateBlueprintBlueprintFieldmask.java | 43 + .../AsyncUpdateDeployment.java | 51 + .../SyncUpdateDeployment.java | 47 + ...ncUpdateDeploymentDeploymentFieldmask.java | 43 + .../AsyncUpdateHydratedDeployment.java | 51 + .../SyncUpdateHydratedDeployment.java | 47 + ...DeploymentHydrateddeploymentFieldmask.java | 44 + .../SyncGetOrchestrationCluster.java | 49 + pom.xml | 1 + versions.txt | 5 + 683 files changed, 267227 insertions(+), 1 deletion(-) create mode 100644 java-telcoautomation/.OwlBot.yaml create mode 100644 java-telcoautomation/.repo-metadata.json create mode 100644 java-telcoautomation/README.md create mode 100644 java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml create mode 100644 java-telcoautomation/google-cloud-telcoautomation/pom.xml create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/gapic_metadata.json create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/package-info.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationStub.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationCallableFactory.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationStub.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/gapic_metadata.json create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/package-info.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationCallableFactory.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationStub.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationCallableFactory.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationStub.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocations.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocationsImpl.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomation.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomationImpl.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientHttpJsonTest.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientTest.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocations.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocationsImpl.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomation.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomationImpl.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientHttpJsonTest.java create mode 100644 java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientTest.java create mode 100644 java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml create mode 100644 java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java create mode 100644 java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml create mode 100644 java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java create mode 100644 java-telcoautomation/owlbot.py create mode 100644 java-telcoautomation/pom.xml create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/clirr-ignored-differences.xml create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Blueprint.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintView.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Deployment.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentLevel.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentView.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlm.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/File.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FileOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeployment.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatus.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatusOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatus.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatusOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatus.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatusOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadata.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadataOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationCluster.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprint.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatus.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatusOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceType.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersion.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersionOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Status.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoautomationProto.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatus.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatusOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/proto/google/cloud/telcoautomation/v1/telcoautomation.proto create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/clirr-ignored-differences.xml create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Blueprint.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintView.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Deployment.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentView.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlm.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/File.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FileOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeployment.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadata.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadataOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationCluster.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprint.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatus.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatusOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceType.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponse.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponseOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfig.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfigOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Status.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoautomationProto.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequest.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequestOrBuilder.java create mode 100644 java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/proto/google/cloud/telcoautomation/v1alpha1/telcoautomation.proto create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/AsyncApplyDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetEndpoint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/AsyncCreateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/AsyncCreateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/AsyncGetBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/AsyncGetDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/AsyncGetLocation.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/SyncGetLocation.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlms.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocations.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocationsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/SyncListLocations.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/AsyncRemoveDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/AsyncApplyDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetEndpoint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/AsyncCreateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/AsyncCreateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/AsyncDeleteBlueprintRevision.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/SyncDeleteBlueprintRevision.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/AsyncDeleteDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/AsyncDeleteDeploymentRevision.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/SyncDeleteDeploymentRevision.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/AsyncGetBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/AsyncGetDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/AsyncGetLocation.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/SyncGetLocation.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlms.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocations.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocationsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/SyncListLocations.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/AsyncRemoveDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java create mode 100644 java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cca53993546..76a02292174f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -121,7 +121,6 @@ * **deps:** update dependency com.google.cloud:google-cloud-shared-config to v1.5.8 ([#9941](https://github.com/googleapis/google-cloud-java/issues/9941)) ([f818d26](https://github.com/googleapis/google-cloud-java/commit/f818d26968e1f19d302da1f1ea0145b2cc496ce0)) * **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#9942](https://github.com/googleapis/google-cloud-java/issues/9942)) ([2cc7888](https://github.com/googleapis/google-cloud-java/commit/2cc78885d76ae5e7dfc4cc9f3034c25fa22c6cc1)) * remove IoT integration tests ([#9944](https://github.com/googleapis/google-cloud-java/issues/9944)) ([237c070](https://github.com/googleapis/google-cloud-java/commit/237c070a9d0a3ecf6a25387648a4d5dd81d705c2)) -* telcoautomation documentation links ([#9938](https://github.com/googleapis/google-cloud-java/issues/9938)) ([54262fd](https://github.com/googleapis/google-cloud-java/commit/54262fd530705e063bc2a0b85f9e6c6d8e5d74e7)) ## [1.21.0](https://github.com/googleapis/google-cloud-java/compare/v1.20.0...v1.21.0) (2023-09-28) diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 6abc7cc4315b..c9b500a62bf8 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -980,6 +980,13 @@ pom import + + com.google.cloud + google-cloud-telcoautomation-bom + 0.0.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-texttospeech-bom diff --git a/generation/new_client/README.md b/generation/new_client/README.md index 70ea04c4d776..390dd1f5f22b 100644 --- a/generation/new_client/README.md +++ b/generation/new_client/README.md @@ -170,6 +170,20 @@ The value must starts with "https://". Example: `https://cloud.google.com/alloydb/docs` +### REST Docs + +The corresponding value in the Cloud Drop page is `documentation_uri`. +The value must starts with "https://". + +Example: `https://cloud.google.com/alloydb/docs` + +### RPC Docs + +The corresponding value in the Cloud Drop page is `documentation_uri`. +The value must starts with "https://". + +Example: `https://cloud.google.com/alloydb/docs` + ### API description The corresponding value in the Cloud Drop page is `documentation.summary` or `documentation.overview`. diff --git a/java-telcoautomation/.OwlBot.yaml b/java-telcoautomation/.OwlBot.yaml new file mode 100644 index 000000000000..245226a83af0 --- /dev/null +++ b/java-telcoautomation/.OwlBot.yaml @@ -0,0 +1,36 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.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. + + +deep-remove-regex: +- "/java-telcoautomation/grpc-google-.*/src" +- "/java-telcoautomation/proto-google-.*/src" +- "/java-telcoautomation/google-.*/src" +- "/java-telcoautomation/samples/snippets/generated" + +deep-preserve-regex: +- "/java-telcoautomation/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/telcoautomation/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-telcoautomation/$1/proto-google-cloud-telcoautomation-$1/src" +- source: "/google/cloud/telcoautomation/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-telcoautomation/$1/grpc-google-cloud-telcoautomation-$1/src" +- source: "/google/cloud/telcoautomation/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-telcoautomation/$1/google-cloud-telcoautomation/src" +- source: "/google/cloud/telcoautomation/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-telcoautomation/$1/samples/snippets/generated" + + +api-name: telcoautomation \ No newline at end of file diff --git a/java-telcoautomation/.repo-metadata.json b/java-telcoautomation/.repo-metadata.json new file mode 100644 index 000000000000..047aacbfc083 --- /dev/null +++ b/java-telcoautomation/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "telcoautomation", + "name_pretty": "Telco Automation API", + "product_documentation": "https://cloud.google.com/telecom-network-automation", + "api_description": "APIs to automate 5G deployment and management of cloud infrastructure and network functions.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview", + "release_level": "preview", + "transport": "grpc", + "language": "java", + "repo": "googleapis/java-telcoautomation", + "repo_short": "java-telcoautomation", + "distribution_name": "com.google.cloud:google-cloud-telcoautomation", + "api_id": "telcoautomation.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md new file mode 100644 index 000000000000..4f6eba9e050e --- /dev/null +++ b/java-telcoautomation/README.md @@ -0,0 +1,225 @@ +# Google Telco Automation API Client for Java + +Java idiomatic client for [Telco Automation API][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.27.0 + pom + import + + + + + + + com.google.cloud + google-cloud-telcoautomation + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + + +```xml + + com.google.cloud + google-cloud-telcoautomation + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-telcoautomation:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.0.0" +``` + + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Telco Automation API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Telco Automation API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Telco Automation API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Telco Automation API. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-telcoautomation` library. See the [Quickstart](#quickstart) section +to add `google-cloud-telcoautomation` as a dependency in your code. + +## About Telco Automation API + + +[Telco Automation API][product-docs] APIs to automate 5G deployment and management of cloud infrastructure and network functions. + +See the [Telco Automation API client library docs][javadocs] to learn how to +use this Telco Automation API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Telco Automation API uses gRPC for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/telecom-network-automation +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-telcoautomation/java11.html +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.0.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/java-telcoautomation/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-telcoautomation/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-telcoautomation/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=telcoautomation.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml new file mode 100644 index 000000000000..9141a1113509 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + com.google.cloud + google-cloud-telcoautomation-bom + 0.0.1-SNAPSHOT + pom + + + com.google.cloud + google-cloud-pom-parent + 1.25.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google Telco Automation API BOM + + BOM for Telco Automation API + + + + true + + + + + + com.google.cloud + google-cloud-telcoautomation + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1alpha1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1alpha1 + 0.0.1-SNAPSHOT + + + + diff --git a/java-telcoautomation/google-cloud-telcoautomation/pom.xml b/java-telcoautomation/google-cloud-telcoautomation/pom.xml new file mode 100644 index 000000000000..43573055f9b4 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/pom.xml @@ -0,0 +1,122 @@ + + + 4.0.0 + com.google.cloud + google-cloud-telcoautomation + 0.0.1-SNAPSHOT + jar + Google Telco Automation API + Telco Automation API APIs to automate 5G deployment and management of cloud infrastructure and network functions. + + com.google.cloud + google-cloud-telcoautomation-parent + 0.0.1-SNAPSHOT + + + google-cloud-telcoautomation + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1 + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1alpha1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + grpc-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api.grpc + grpc-google-iam-v1 + + + org.threeten + threetenbp + + + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1 + test + + + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1alpha1 + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java new file mode 100644 index 000000000000..17ea849ab282 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java @@ -0,0 +1,6435 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.stub.TelcoAutomationStub; +import com.google.cloud.telcoautomation.v1.stub.TelcoAutomationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: TelcoAutomation Service manages the control plane cluster a.k.a. + * Orchestration Cluster (GKE cluster with config controller) of TNA. It also exposes blueprint APIs + * which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE + * clusters) and deployment of network functions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+ *   OrchestrationClusterName name =
+ *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+ *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TelcoAutomationClient 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 TelcoAutomationSettings 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
+ * TelcoAutomationSettings telcoAutomationSettings =
+ *     TelcoAutomationSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TelcoAutomationClient telcoAutomationClient =
+ *     TelcoAutomationClient.create(telcoAutomationSettings);
+ * }
+ * + *

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
+ * TelcoAutomationSettings telcoAutomationSettings =
+ *     TelcoAutomationSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TelcoAutomationClient telcoAutomationClient =
+ *     TelcoAutomationClient.create(telcoAutomationSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated 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
+ * TelcoAutomationSettings telcoAutomationSettings =
+ *     TelcoAutomationSettings.newHttpJsonBuilder().build();
+ * TelcoAutomationClient telcoAutomationClient =
+ *     TelcoAutomationClient.create(telcoAutomationSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TelcoAutomationClient implements BackgroundResource { + private final TelcoAutomationSettings settings; + private final TelcoAutomationStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TelcoAutomationClient with default settings. */ + public static final TelcoAutomationClient create() throws IOException { + return create(TelcoAutomationSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TelcoAutomationClient, 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 TelcoAutomationClient create(TelcoAutomationSettings settings) + throws IOException { + return new TelcoAutomationClient(settings); + } + + /** + * Constructs an instance of TelcoAutomationClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(TelcoAutomationSettings). + */ + public static final TelcoAutomationClient create(TelcoAutomationStub stub) { + return new TelcoAutomationClient(stub); + } + + /** + * Constructs an instance of TelcoAutomationClient, 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 TelcoAutomationClient(TelcoAutomationSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TelcoAutomationStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TelcoAutomationClient(TelcoAutomationStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TelcoAutomationSettings getSettings() { + return settings; + } + + public TelcoAutomationStub 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 com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (OrchestrationCluster element :
+   *       telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListOrchestrationClustersRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( + LocationName parent) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOrchestrationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (OrchestrationCluster element :
+   *       telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListOrchestrationClustersRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrchestrationClustersPagedResponse listOrchestrationClusters(String parent) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder().setParent(parent).build(); + return listOrchestrationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListOrchestrationClustersRequest request =
+   *       ListOrchestrationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (OrchestrationCluster element :
+   *       telcoAutomationClient.listOrchestrationClusters(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 ListOrchestrationClustersPagedResponse listOrchestrationClusters( + ListOrchestrationClustersRequest request) { + return listOrchestrationClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListOrchestrationClustersRequest request =
+   *       ListOrchestrationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listOrchestrationClustersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (OrchestrationCluster element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable() { + return stub.listOrchestrationClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListOrchestrationClustersRequest request =
+   *       ListOrchestrationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListOrchestrationClustersResponse response =
+   *         telcoAutomationClient.listOrchestrationClustersCallable().call(request);
+   *     for (OrchestrationCluster element : response.getOrchestrationClustersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listOrchestrationClustersCallable() { + return stub.listOrchestrationClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrchestrationCluster getOrchestrationCluster(OrchestrationClusterName name) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOrchestrationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrchestrationCluster getOrchestrationCluster(String name) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder().setName(name).build(); + return getOrchestrationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetOrchestrationClusterRequest request =
+   *       GetOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(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 OrchestrationCluster getOrchestrationCluster( + GetOrchestrationClusterRequest request) { + return getOrchestrationClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetOrchestrationClusterRequest request =
+   *       GetOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getOrchestrationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   OrchestrationCluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getOrchestrationClusterCallable() { + return stub.getOrchestrationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build();
+   *   String orchestrationClusterId = "orchestrationClusterId75469684";
+   *   OrchestrationCluster response =
+   *       telcoAutomationClient
+   *           .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param orchestrationCluster Required. The resource being created + * @param orchestrationClusterId Required. Id of the requesting object If auto-generating Id + * server-side, remove this field and orchestration_cluster_id from the method_signature of + * Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOrchestrationClusterAsync( + LocationName parent, + OrchestrationCluster orchestrationCluster, + String orchestrationClusterId) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOrchestrationCluster(orchestrationCluster) + .setOrchestrationClusterId(orchestrationClusterId) + .build(); + return createOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build();
+   *   String orchestrationClusterId = "orchestrationClusterId75469684";
+   *   OrchestrationCluster response =
+   *       telcoAutomationClient
+   *           .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param orchestrationCluster Required. The resource being created + * @param orchestrationClusterId Required. Id of the requesting object If auto-generating Id + * server-side, remove this field and orchestration_cluster_id from the method_signature of + * Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOrchestrationClusterAsync( + String parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(parent) + .setOrchestrationCluster(orchestrationCluster) + .setOrchestrationClusterId(orchestrationClusterId) + .build(); + return createOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateOrchestrationClusterRequest request =
+   *       CreateOrchestrationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOrchestrationClusterId("orchestrationClusterId75469684")
+   *           .setOrchestrationCluster(OrchestrationCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OrchestrationCluster response =
+   *       telcoAutomationClient.createOrchestrationClusterAsync(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 + createOrchestrationClusterAsync(CreateOrchestrationClusterRequest request) { + return createOrchestrationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateOrchestrationClusterRequest request =
+   *       CreateOrchestrationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOrchestrationClusterId("orchestrationClusterId75469684")
+   *           .setOrchestrationCluster(OrchestrationCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.createOrchestrationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   OrchestrationCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return stub.createOrchestrationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateOrchestrationClusterRequest request =
+   *       CreateOrchestrationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOrchestrationClusterId("orchestrationClusterId75469684")
+   *           .setOrchestrationCluster(OrchestrationCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createOrchestrationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createOrchestrationClusterCallable() { + return stub.createOrchestrationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   telcoAutomationClient.deleteOrchestrationClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrchestrationClusterAsync( + OrchestrationClusterName name) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   telcoAutomationClient.deleteOrchestrationClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrchestrationClusterAsync( + String name) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder().setName(name).build(); + return deleteOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteOrchestrationClusterRequest request =
+   *       DeleteOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   telcoAutomationClient.deleteOrchestrationClusterAsync(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 deleteOrchestrationClusterAsync( + DeleteOrchestrationClusterRequest request) { + return deleteOrchestrationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteOrchestrationClusterRequest request =
+   *       DeleteOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.deleteOrchestrationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOrchestrationClusterOperationCallable() { + return stub.deleteOrchestrationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteOrchestrationClusterRequest request =
+   *       DeleteOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteOrchestrationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteOrchestrationClusterCallable() { + return stub.deleteOrchestrationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListEdgeSlmsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEdgeSlmsPagedResponse listEdgeSlms(LocationName parent) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEdgeSlms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListEdgeSlmsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEdgeSlmsPagedResponse listEdgeSlms(String parent) { + ListEdgeSlmsRequest request = ListEdgeSlmsRequest.newBuilder().setParent(parent).build(); + return listEdgeSlms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListEdgeSlmsRequest request =
+   *       ListEdgeSlmsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(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 ListEdgeSlmsPagedResponse listEdgeSlms(ListEdgeSlmsRequest request) { + return listEdgeSlmsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListEdgeSlmsRequest request =
+   *       ListEdgeSlmsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listEdgeSlmsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (EdgeSlm element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEdgeSlmsPagedCallable() { + return stub.listEdgeSlmsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListEdgeSlmsRequest request =
+   *       ListEdgeSlmsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListEdgeSlmsResponse response = telcoAutomationClient.listEdgeSlmsCallable().call(request);
+   *     for (EdgeSlm element : response.getEdgeSlmsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listEdgeSlmsCallable() { + return stub.listEdgeSlmsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]");
+   *   EdgeSlm response = telcoAutomationClient.getEdgeSlm(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EdgeSlm getEdgeSlm(EdgeSlmName name) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEdgeSlm(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString();
+   *   EdgeSlm response = telcoAutomationClient.getEdgeSlm(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EdgeSlm getEdgeSlm(String name) { + GetEdgeSlmRequest request = GetEdgeSlmRequest.newBuilder().setName(name).build(); + return getEdgeSlm(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetEdgeSlmRequest request =
+   *       GetEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .build();
+   *   EdgeSlm response = telcoAutomationClient.getEdgeSlm(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 EdgeSlm getEdgeSlm(GetEdgeSlmRequest request) { + return getEdgeSlmCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetEdgeSlmRequest request =
+   *       GetEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .build();
+   *   ApiFuture future = telcoAutomationClient.getEdgeSlmCallable().futureCall(request);
+   *   // Do something.
+   *   EdgeSlm response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getEdgeSlmCallable() { + return stub.getEdgeSlmCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   EdgeSlm edgeSlm = EdgeSlm.newBuilder().build();
+   *   String edgeSlmId = "edgeSlmId213186994";
+   *   EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param edgeSlm Required. The resource being created + * @param edgeSlmId Required. Id of the requesting object If auto-generating Id server-side, + * remove this field and edge_slm_id from the method_signature of Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEdgeSlmAsync( + LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEdgeSlm(edgeSlm) + .setEdgeSlmId(edgeSlmId) + .build(); + return createEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   EdgeSlm edgeSlm = EdgeSlm.newBuilder().build();
+   *   String edgeSlmId = "edgeSlmId213186994";
+   *   EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param edgeSlm Required. The resource being created + * @param edgeSlmId Required. Id of the requesting object If auto-generating Id server-side, + * remove this field and edge_slm_id from the method_signature of Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEdgeSlmAsync( + String parent, EdgeSlm edgeSlm, String edgeSlmId) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(parent) + .setEdgeSlm(edgeSlm) + .setEdgeSlmId(edgeSlmId) + .build(); + return createEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateEdgeSlmRequest request =
+   *       CreateEdgeSlmRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEdgeSlmId("edgeSlmId213186994")
+   *           .setEdgeSlm(EdgeSlm.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(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 createEdgeSlmAsync( + CreateEdgeSlmRequest request) { + return createEdgeSlmOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateEdgeSlmRequest request =
+   *       CreateEdgeSlmRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEdgeSlmId("edgeSlmId213186994")
+   *           .setEdgeSlm(EdgeSlm.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.createEdgeSlmOperationCallable().futureCall(request);
+   *   // Do something.
+   *   EdgeSlm response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createEdgeSlmOperationCallable() { + return stub.createEdgeSlmOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateEdgeSlmRequest request =
+   *       CreateEdgeSlmRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEdgeSlmId("edgeSlmId213186994")
+   *           .setEdgeSlm(EdgeSlm.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createEdgeSlmCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createEdgeSlmCallable() { + return stub.createEdgeSlmCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]");
+   *   telcoAutomationClient.deleteEdgeSlmAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteEdgeSlmAsync(EdgeSlmName name) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString();
+   *   telcoAutomationClient.deleteEdgeSlmAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteEdgeSlmAsync(String name) { + DeleteEdgeSlmRequest request = DeleteEdgeSlmRequest.newBuilder().setName(name).build(); + return deleteEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteEdgeSlmRequest request =
+   *       DeleteEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   telcoAutomationClient.deleteEdgeSlmAsync(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 deleteEdgeSlmAsync( + DeleteEdgeSlmRequest request) { + return deleteEdgeSlmOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteEdgeSlmRequest request =
+   *       DeleteEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.deleteEdgeSlmOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteEdgeSlmOperationCallable() { + return stub.deleteEdgeSlmOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteEdgeSlmRequest request =
+   *       DeleteEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteEdgeSlmCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteEdgeSlmCallable() { + return stub.deleteEdgeSlmCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   Blueprint blueprint = Blueprint.newBuilder().build();
+   *   String blueprintId = "blueprintId-1159505138";
+   *   Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param blueprint Required. The `Blueprint` to create. + * @param blueprintId Optional. The name of the blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint createBlueprint( + OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBlueprint(blueprint) + .setBlueprintId(blueprintId) + .build(); + return createBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   Blueprint blueprint = Blueprint.newBuilder().build();
+   *   String blueprintId = "blueprintId-1159505138";
+   *   Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param blueprint Required. The `Blueprint` to create. + * @param blueprintId Optional. The name of the blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint createBlueprint(String parent, Blueprint blueprint, String blueprintId) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent(parent) + .setBlueprint(blueprint) + .setBlueprintId(blueprintId) + .build(); + return createBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateBlueprintRequest request =
+   *       CreateBlueprintRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setBlueprintId("blueprintId-1159505138")
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.createBlueprint(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 Blueprint createBlueprint(CreateBlueprintRequest request) { + return createBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateBlueprintRequest request =
+   *       CreateBlueprintRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setBlueprintId("blueprintId-1159505138")
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBlueprintCallable() { + return stub.createBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   Blueprint blueprint = Blueprint.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Blueprint response = telcoAutomationClient.updateBlueprint(blueprint, updateMask);
+   * }
+   * }
+ * + * @param blueprint Required. The `blueprint` to update. + * @param updateMask Required. Update mask is used to specify the fields to be overwritten in the + * `blueprint` resource by the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint updateBlueprint(Blueprint blueprint, FieldMask updateMask) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(blueprint) + .setUpdateMask(updateMask) + .build(); + return updateBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateBlueprintRequest request =
+   *       UpdateBlueprintRequest.newBuilder()
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.updateBlueprint(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 Blueprint updateBlueprint(UpdateBlueprintRequest request) { + return updateBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateBlueprintRequest request =
+   *       UpdateBlueprintRequest.newBuilder()
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.updateBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBlueprintCallable() { + return stub.updateBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.getBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint. Case 1: If the name provided in the request is + * {blueprint_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {blueprint}, then the current + * state of the blueprint is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint getBlueprint(BlueprintName name) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.getBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint. Case 1: If the name provided in the request is + * {blueprint_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {blueprint}, then the current + * state of the blueprint is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint getBlueprint(String name) { + GetBlueprintRequest request = GetBlueprintRequest.newBuilder().setName(name).build(); + return getBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetBlueprintRequest request =
+   *       GetBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setView(BlueprintView.forNumber(0))
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.getBlueprint(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 Blueprint getBlueprint(GetBlueprintRequest request) { + return getBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetBlueprintRequest request =
+   *       GetBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setView(BlueprintView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBlueprintCallable() { + return stub.getBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   telcoAutomationClient.deleteBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of blueprint to delete. Blueprint name should be in the format + * {blueprint_id}, if {blueprint_id}{@literal @}{revision_id} is passed then the API throws + * invalid argument. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBlueprint(BlueprintName name) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   telcoAutomationClient.deleteBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of blueprint to delete. Blueprint name should be in the format + * {blueprint_id}, if {blueprint_id}{@literal @}{revision_id} is passed then the API throws + * invalid argument. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBlueprint(String name) { + DeleteBlueprintRequest request = DeleteBlueprintRequest.newBuilder().setName(name).build(); + deleteBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteBlueprintRequest request =
+   *       DeleteBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   telcoAutomationClient.deleteBlueprint(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 void deleteBlueprint(DeleteBlueprintRequest request) { + deleteBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteBlueprintRequest request =
+   *       DeleteBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = telcoAutomationClient.deleteBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBlueprintCallable() { + return stub.deleteBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintsPagedResponse listBlueprints(OrchestrationClusterName parent) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintsPagedResponse listBlueprints(String parent) { + ListBlueprintsRequest request = ListBlueprintsRequest.newBuilder().setParent(parent).build(); + return listBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintsRequest request =
+   *       ListBlueprintsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprints(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 ListBlueprintsPagedResponse listBlueprints(ListBlueprintsRequest request) { + return listBlueprintsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintsRequest request =
+   *       ListBlueprintsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listBlueprintsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Blueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintsPagedCallable() { + return stub.listBlueprintsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintsRequest request =
+   *       ListBlueprintsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBlueprintsResponse response =
+   *         telcoAutomationClient.listBlueprintsCallable().call(request);
+   *     for (Blueprint element : response.getBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintsCallable() { + return stub.listBlueprintsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.approveBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to approve. The blueprint must be in Proposed + * state. A new revision is committed on approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint approveBlueprint(BlueprintName name) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return approveBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.approveBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to approve. The blueprint must be in Proposed + * state. A new revision is committed on approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint approveBlueprint(String name) { + ApproveBlueprintRequest request = ApproveBlueprintRequest.newBuilder().setName(name).build(); + return approveBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApproveBlueprintRequest request =
+   *       ApproveBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.approveBlueprint(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 Blueprint approveBlueprint(ApproveBlueprintRequest request) { + return approveBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApproveBlueprintRequest request =
+   *       ApproveBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.approveBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable approveBlueprintCallable() { + return stub.approveBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.proposeBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being proposed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint proposeBlueprint(BlueprintName name) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return proposeBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.proposeBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being proposed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint proposeBlueprint(String name) { + ProposeBlueprintRequest request = ProposeBlueprintRequest.newBuilder().setName(name).build(); + return proposeBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ProposeBlueprintRequest request =
+   *       ProposeBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.proposeBlueprint(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 Blueprint proposeBlueprint(ProposeBlueprintRequest request) { + return proposeBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ProposeBlueprintRequest request =
+   *       ProposeBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.proposeBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable proposeBlueprintCallable() { + return stub.proposeBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.rejectBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being rejected. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint rejectBlueprint(BlueprintName name) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return rejectBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.rejectBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being rejected. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint rejectBlueprint(String name) { + RejectBlueprintRequest request = RejectBlueprintRequest.newBuilder().setName(name).build(); + return rejectBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RejectBlueprintRequest request =
+   *       RejectBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.rejectBlueprint(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 Blueprint rejectBlueprint(RejectBlueprintRequest request) { + return rejectBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RejectBlueprintRequest request =
+   *       RejectBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.rejectBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable rejectBlueprintCallable() { + return stub.rejectBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(BlueprintName name) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(String name) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder().setName(name).build(); + return listBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintRevisionsRequest request =
+   *       ListBlueprintRevisionsRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(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 ListBlueprintRevisionsPagedResponse listBlueprintRevisions( + ListBlueprintRevisionsRequest request) { + return listBlueprintRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintRevisionsRequest request =
+   *       ListBlueprintRevisionsRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listBlueprintRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Blueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintRevisionsPagedCallable() { + return stub.listBlueprintRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintRevisionsRequest request =
+   *       ListBlueprintRevisionsRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBlueprintRevisionsResponse response =
+   *         telcoAutomationClient.listBlueprintRevisionsCallable().call(request);
+   *     for (Blueprint element : response.getBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintRevisionsCallable() { + return stub.listBlueprintRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   String query = "query107944136";
+   *   for (Blueprint element :
+   *       telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all blueprints. 2. + * "latest=true" : Lists latest revisions across all blueprints. 3. "name={name}" : Lists all + * revisions of blueprint with name {name}. 4. "name={name} latest=true": Lists latest + * revision of blueprint with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + OrchestrationClusterName parent, String query) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   String query = "query107944136";
+   *   for (Blueprint element :
+   *       telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all blueprints. 2. + * "latest=true" : Lists latest revisions across all blueprints. 3. "name={name}" : Lists all + * revisions of blueprint with name {name}. 4. "name={name} latest=true": Lists latest + * revision of blueprint with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + String parent, String query) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchBlueprintRevisionsRequest request =
+   *       SearchBlueprintRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Blueprint element :
+   *       telcoAutomationClient.searchBlueprintRevisions(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 SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + SearchBlueprintRevisionsRequest request) { + return searchBlueprintRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchBlueprintRevisionsRequest request =
+   *       SearchBlueprintRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.searchBlueprintRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Blueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchBlueprintRevisionsPagedCallable() { + return stub.searchBlueprintRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchBlueprintRevisionsRequest request =
+   *       SearchBlueprintRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchBlueprintRevisionsResponse response =
+   *         telcoAutomationClient.searchBlueprintRevisionsCallable().call(request);
+   *     for (Blueprint element : response.getBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchBlueprintRevisionsCallable() { + return stub.searchBlueprintRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   String query = "query107944136";
+   *   for (Deployment element :
+   *       telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all deployments. + * 2. "latest=true" : Lists latest revisions across all deployments. 3. "name={name}" : Lists + * all revisions of deployment with name {name}. 4. "name={name} latest=true": Lists latest + * revision of deployment with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + OrchestrationClusterName parent, String query) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   String query = "query107944136";
+   *   for (Deployment element :
+   *       telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all deployments. + * 2. "latest=true" : Lists latest revisions across all deployments. 3. "name={name}" : Lists + * all revisions of deployment with name {name}. 4. "name={name} latest=true": Lists latest + * revision of deployment with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + String parent, String query) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchDeploymentRevisionsRequest request =
+   *       SearchDeploymentRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element :
+   *       telcoAutomationClient.searchDeploymentRevisions(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 SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + SearchDeploymentRevisionsRequest request) { + return searchDeploymentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchDeploymentRevisionsRequest request =
+   *       SearchDeploymentRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.searchDeploymentRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Deployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable() { + return stub.searchDeploymentRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchDeploymentRevisionsRequest request =
+   *       SearchDeploymentRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchDeploymentRevisionsResponse response =
+   *         telcoAutomationClient.searchDeploymentRevisionsCallable().call(request);
+   *     for (Deployment element : response.getDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchDeploymentRevisionsCallable() { + return stub.searchDeploymentRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   DiscardBlueprintChangesResponse response =
+   *       telcoAutomationClient.discardBlueprintChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardBlueprintChangesResponse discardBlueprintChanges(BlueprintName name) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return discardBlueprintChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   DiscardBlueprintChangesResponse response =
+   *       telcoAutomationClient.discardBlueprintChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardBlueprintChangesResponse discardBlueprintChanges(String name) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder().setName(name).build(); + return discardBlueprintChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardBlueprintChangesRequest request =
+   *       DiscardBlueprintChangesRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   DiscardBlueprintChangesResponse response =
+   *       telcoAutomationClient.discardBlueprintChanges(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 DiscardBlueprintChangesResponse discardBlueprintChanges( + DiscardBlueprintChangesRequest request) { + return discardBlueprintChangesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardBlueprintChangesRequest request =
+   *       DiscardBlueprintChangesRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.discardBlueprintChangesCallable().futureCall(request);
+   *   // Do something.
+   *   DiscardBlueprintChangesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + discardBlueprintChangesCallable() { + return stub.discardBlueprintChangesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PublicBlueprint element :
+   *       telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value of public blueprint. Format should be - + * "projects/{project_id}/locations/{location_name}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublicBlueprintsPagedResponse listPublicBlueprints(LocationName parent) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPublicBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PublicBlueprint element :
+   *       telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value of public blueprint. Format should be - + * "projects/{project_id}/locations/{location_name}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublicBlueprintsPagedResponse listPublicBlueprints(String parent) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder().setParent(parent).build(); + return listPublicBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListPublicBlueprintsRequest request =
+   *       ListPublicBlueprintsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (PublicBlueprint element :
+   *       telcoAutomationClient.listPublicBlueprints(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 ListPublicBlueprintsPagedResponse listPublicBlueprints( + ListPublicBlueprintsRequest request) { + return listPublicBlueprintsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListPublicBlueprintsRequest request =
+   *       ListPublicBlueprintsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listPublicBlueprintsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PublicBlueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPublicBlueprintsPagedCallable() { + return stub.listPublicBlueprintsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListPublicBlueprintsRequest request =
+   *       ListPublicBlueprintsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListPublicBlueprintsResponse response =
+   *         telcoAutomationClient.listPublicBlueprintsCallable().call(request);
+   *     for (PublicBlueprint element : response.getPublicBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPublicBlueprintsCallable() { + return stub.listPublicBlueprintsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   PublicBlueprintName name =
+   *       PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]");
+   *   PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the public blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicBlueprint getPublicBlueprint(PublicBlueprintName name) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPublicBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString();
+   *   PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the public blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicBlueprint getPublicBlueprint(String name) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder().setName(name).build(); + return getPublicBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetPublicBlueprintRequest request =
+   *       GetPublicBlueprintRequest.newBuilder()
+   *           .setName(
+   *               PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString())
+   *           .build();
+   *   PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(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 PublicBlueprint getPublicBlueprint(GetPublicBlueprintRequest request) { + return getPublicBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetPublicBlueprintRequest request =
+   *       GetPublicBlueprintRequest.newBuilder()
+   *           .setName(
+   *               PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getPublicBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   PublicBlueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPublicBlueprintCallable() { + return stub.getPublicBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   Deployment deployment = Deployment.newBuilder().build();
+   *   String deploymentId = "deploymentId-136894784";
+   *   Deployment response =
+   *       telcoAutomationClient.createDeployment(parent, deployment, deploymentId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param deployment Required. The `Deployment` to create. + * @param deploymentId Optional. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + OrchestrationClusterName parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   Deployment deployment = Deployment.newBuilder().build();
+   *   String deploymentId = "deploymentId-136894784";
+   *   Deployment response =
+   *       telcoAutomationClient.createDeployment(parent, deployment, deploymentId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param deployment Required. The `Deployment` to create. + * @param deploymentId Optional. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + String parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateDeploymentRequest request =
+   *       CreateDeploymentRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setDeploymentId("deploymentId-136894784")
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.createDeployment(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 Deployment createDeployment(CreateDeploymentRequest request) { + return createDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateDeploymentRequest request =
+   *       CreateDeploymentRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setDeploymentId("deploymentId-136894784")
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDeploymentCallable() { + return stub.createDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   Deployment deployment = Deployment.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Deployment response = telcoAutomationClient.updateDeployment(deployment, updateMask);
+   * }
+   * }
+ * + * @param deployment Required. The `deployment` to update. + * @param updateMask Required. Update mask is used to specify the fields to be overwritten in the + * `deployment` resource by the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment updateDeployment(Deployment deployment, FieldMask updateMask) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(deployment) + .setUpdateMask(updateMask) + .build(); + return updateDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateDeploymentRequest request =
+   *       UpdateDeploymentRequest.newBuilder()
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.updateDeployment(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 Deployment updateDeployment(UpdateDeploymentRequest request) { + return updateDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateDeploymentRequest request =
+   *       UpdateDeploymentRequest.newBuilder()
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.updateDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDeploymentCallable() { + return stub.updateDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   Deployment response = telcoAutomationClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment. Case 1: If the name provided in the request + * is {deployment_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {deployment}, then the current + * state of the deployment is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(DeploymentName name) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   Deployment response = telcoAutomationClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment. Case 1: If the name provided in the request + * is {deployment_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {deployment}, then the current + * state of the deployment is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(String name) { + GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setView(DeploymentView.forNumber(0))
+   *           .build();
+   *   Deployment response = telcoAutomationClient.getDeployment(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 Deployment getDeployment(GetDeploymentRequest request) { + return getDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setView(DeploymentView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDeploymentCallable() { + return stub.getDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   telcoAutomationClient.removeDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of deployment to initiate delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDeployment(DeploymentName name) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + removeDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   telcoAutomationClient.removeDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of deployment to initiate delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDeployment(String name) { + RemoveDeploymentRequest request = RemoveDeploymentRequest.newBuilder().setName(name).build(); + removeDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RemoveDeploymentRequest request =
+   *       RemoveDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   telcoAutomationClient.removeDeployment(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 void removeDeployment(RemoveDeploymentRequest request) { + removeDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RemoveDeploymentRequest request =
+   *       RemoveDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.removeDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable removeDeploymentCallable() { + return stub.removeDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(OrchestrationClusterName parent) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(String parent) { + ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder().setParent(parent).build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element : telcoAutomationClient.listDeployments(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 ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest request) { + return listDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listDeploymentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Deployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentsPagedCallable() { + return stub.listDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentsResponse response =
+   *         telcoAutomationClient.listDeploymentsCallable().call(request);
+   *     for (Deployment element : response.getDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentsCallable() { + return stub.listDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(DeploymentName name) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(String name) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder().setName(name).build(); + return listDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentRevisionsRequest request =
+   *       ListDeploymentRevisionsRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element :
+   *       telcoAutomationClient.listDeploymentRevisions(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 ListDeploymentRevisionsPagedResponse listDeploymentRevisions( + ListDeploymentRevisionsRequest request) { + return listDeploymentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentRevisionsRequest request =
+   *       ListDeploymentRevisionsRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listDeploymentRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Deployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentRevisionsPagedCallable() { + return stub.listDeploymentRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentRevisionsRequest request =
+   *       ListDeploymentRevisionsRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentRevisionsResponse response =
+   *         telcoAutomationClient.listDeploymentRevisionsCallable().call(request);
+   *     for (Deployment element : response.getDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentRevisionsCallable() { + return stub.listDeploymentRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   DiscardDeploymentChangesResponse response =
+   *       telcoAutomationClient.discardDeploymentChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardDeploymentChangesResponse discardDeploymentChanges(DeploymentName name) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return discardDeploymentChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   DiscardDeploymentChangesResponse response =
+   *       telcoAutomationClient.discardDeploymentChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardDeploymentChangesResponse discardDeploymentChanges(String name) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder().setName(name).build(); + return discardDeploymentChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardDeploymentChangesRequest request =
+   *       DiscardDeploymentChangesRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   DiscardDeploymentChangesResponse response =
+   *       telcoAutomationClient.discardDeploymentChanges(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 DiscardDeploymentChangesResponse discardDeploymentChanges( + DiscardDeploymentChangesRequest request) { + return discardDeploymentChangesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardDeploymentChangesRequest request =
+   *       DiscardDeploymentChangesRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.discardDeploymentChangesCallable().futureCall(request);
+   *   // Do something.
+   *   DiscardDeploymentChangesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + discardDeploymentChangesCallable() { + return stub.discardDeploymentChangesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   Deployment response = telcoAutomationClient.applyDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to apply to orchestration cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment applyDeployment(DeploymentName name) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return applyDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   Deployment response = telcoAutomationClient.applyDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to apply to orchestration cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment applyDeployment(String name) { + ApplyDeploymentRequest request = ApplyDeploymentRequest.newBuilder().setName(name).build(); + return applyDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyDeploymentRequest request =
+   *       ApplyDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.applyDeployment(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 Deployment applyDeployment(ApplyDeploymentRequest request) { + return applyDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyDeploymentRequest request =
+   *       ApplyDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.applyDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable applyDeploymentCallable() { + return stub.applyDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   ComputeDeploymentStatusResponse response =
+   *       telcoAutomationClient.computeDeploymentStatus(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment without revisionID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeDeploymentStatusResponse computeDeploymentStatus(DeploymentName name) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return computeDeploymentStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   ComputeDeploymentStatusResponse response =
+   *       telcoAutomationClient.computeDeploymentStatus(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment without revisionID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeDeploymentStatusResponse computeDeploymentStatus(String name) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder().setName(name).build(); + return computeDeploymentStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ComputeDeploymentStatusRequest request =
+   *       ComputeDeploymentStatusRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ComputeDeploymentStatusResponse response =
+   *       telcoAutomationClient.computeDeploymentStatus(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 ComputeDeploymentStatusResponse computeDeploymentStatus( + ComputeDeploymentStatusRequest request) { + return computeDeploymentStatusCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ComputeDeploymentStatusRequest request =
+   *       ComputeDeploymentStatusRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.computeDeploymentStatusCallable().futureCall(request);
+   *   // Do something.
+   *   ComputeDeploymentStatusResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + computeDeploymentStatusCallable() { + return stub.computeDeploymentStatusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   String revisionId = "revisionId-1507445162";
+   *   Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId);
+   * }
+   * }
+ * + * @param name Required. Name of the deployment. + * @param revisionId Required. The revision id of deployment to roll back to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment rollbackDeployment(DeploymentName name, String revisionId) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRevisionId(revisionId) + .build(); + return rollbackDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   String revisionId = "revisionId-1507445162";
+   *   Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId);
+   * }
+   * }
+ * + * @param name Required. Name of the deployment. + * @param revisionId Required. The revision id of deployment to roll back to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment rollbackDeployment(String name, String revisionId) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder().setName(name).setRevisionId(revisionId).build(); + return rollbackDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RollbackDeploymentRequest request =
+   *       RollbackDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setRevisionId("revisionId-1507445162")
+   *           .build();
+   *   Deployment response = telcoAutomationClient.rollbackDeployment(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 Deployment rollbackDeployment(RollbackDeploymentRequest request) { + return rollbackDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RollbackDeploymentRequest request =
+   *       RollbackDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setRevisionId("revisionId-1507445162")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.rollbackDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable rollbackDeploymentCallable() { + return stub.rollbackDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   HydratedDeploymentName name =
+   *       HydratedDeploymentName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[ORCHESTRATION_CLUSTER]",
+   *           "[DEPLOYMENT]",
+   *           "[HYDRATED_DEPLOYMENT]");
+   *   HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. Name of the hydrated deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment getHydratedDeployment(HydratedDeploymentName name) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       HydratedDeploymentName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[ORCHESTRATION_CLUSTER]",
+   *               "[DEPLOYMENT]",
+   *               "[HYDRATED_DEPLOYMENT]")
+   *           .toString();
+   *   HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. Name of the hydrated deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment getHydratedDeployment(String name) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder().setName(name).build(); + return getHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetHydratedDeploymentRequest request =
+   *       GetHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(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 HydratedDeployment getHydratedDeployment(GetHydratedDeploymentRequest request) { + return getHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetHydratedDeploymentRequest request =
+   *       GetHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getHydratedDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   HydratedDeployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getHydratedDeploymentCallable() { + return stub.getHydratedDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName parent =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   for (HydratedDeployment element :
+   *       telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The deployment managing the hydrated deployments. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(DeploymentName parent) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listHydratedDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   for (HydratedDeployment element :
+   *       telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The deployment managing the hydrated deployments. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(String parent) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder().setParent(parent).build(); + return listHydratedDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListHydratedDeploymentsRequest request =
+   *       ListHydratedDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (HydratedDeployment element :
+   *       telcoAutomationClient.listHydratedDeployments(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 ListHydratedDeploymentsPagedResponse listHydratedDeployments( + ListHydratedDeploymentsRequest request) { + return listHydratedDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListHydratedDeploymentsRequest request =
+   *       ListHydratedDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listHydratedDeploymentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (HydratedDeployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listHydratedDeploymentsPagedCallable() { + return stub.listHydratedDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListHydratedDeploymentsRequest request =
+   *       ListHydratedDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListHydratedDeploymentsResponse response =
+   *         telcoAutomationClient.listHydratedDeploymentsCallable().call(request);
+   *     for (HydratedDeployment element : response.getHydratedDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listHydratedDeploymentsCallable() { + return stub.listHydratedDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   HydratedDeployment response =
+   *       telcoAutomationClient.updateHydratedDeployment(hydratedDeployment, updateMask);
+   * }
+   * }
+ * + * @param hydratedDeployment Required. The hydrated deployment to update. + * @param updateMask Required. The list of fields to update. Update mask supports a special value + * `*` which fully replaces (equivalent to PUT) the resource provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment updateHydratedDeployment( + HydratedDeployment hydratedDeployment, FieldMask updateMask) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(hydratedDeployment) + .setUpdateMask(updateMask) + .build(); + return updateHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateHydratedDeploymentRequest request =
+   *       UpdateHydratedDeploymentRequest.newBuilder()
+   *           .setHydratedDeployment(HydratedDeployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   HydratedDeployment response = telcoAutomationClient.updateHydratedDeployment(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 HydratedDeployment updateHydratedDeployment( + UpdateHydratedDeploymentRequest request) { + return updateHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateHydratedDeploymentRequest request =
+   *       UpdateHydratedDeploymentRequest.newBuilder()
+   *           .setHydratedDeployment(HydratedDeployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.updateHydratedDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   HydratedDeployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateHydratedDeploymentCallable() { + return stub.updateHydratedDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   HydratedDeploymentName name =
+   *       HydratedDeploymentName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[ORCHESTRATION_CLUSTER]",
+   *           "[DEPLOYMENT]",
+   *           "[HYDRATED_DEPLOYMENT]");
+   *   HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the hydrated deployment to apply. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment applyHydratedDeployment(HydratedDeploymentName name) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return applyHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       HydratedDeploymentName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[ORCHESTRATION_CLUSTER]",
+   *               "[DEPLOYMENT]",
+   *               "[HYDRATED_DEPLOYMENT]")
+   *           .toString();
+   *   HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the hydrated deployment to apply. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment applyHydratedDeployment(String name) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder().setName(name).build(); + return applyHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyHydratedDeploymentRequest request =
+   *       ApplyHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(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 HydratedDeployment applyHydratedDeployment(ApplyHydratedDeploymentRequest request) { + return applyHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyHydratedDeploymentRequest request =
+   *       ApplyHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.applyHydratedDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   HydratedDeployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + applyHydratedDeploymentCallable() { + return stub.applyHydratedDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : telcoAutomationClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         telcoAutomationClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = telcoAutomationClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = telcoAutomationClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListOrchestrationClustersPagedResponse + extends AbstractPagedListResponse< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster, + ListOrchestrationClustersPage, + ListOrchestrationClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOrchestrationClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOrchestrationClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOrchestrationClustersPagedResponse(ListOrchestrationClustersPage page) { + super(page, ListOrchestrationClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOrchestrationClustersPage + extends AbstractPage< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster, + ListOrchestrationClustersPage> { + + private ListOrchestrationClustersPage( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ListOrchestrationClustersResponse response) { + super(context, response); + } + + private static ListOrchestrationClustersPage createEmptyPage() { + return new ListOrchestrationClustersPage(null, null); + } + + @Override + protected ListOrchestrationClustersPage createPage( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ListOrchestrationClustersResponse response) { + return new ListOrchestrationClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOrchestrationClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster, + ListOrchestrationClustersPage, + ListOrchestrationClustersFixedSizeCollection> { + + private ListOrchestrationClustersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOrchestrationClustersFixedSizeCollection createEmptyCollection() { + return new ListOrchestrationClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListOrchestrationClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOrchestrationClustersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEdgeSlmsPagedResponse + extends AbstractPagedListResponse< + ListEdgeSlmsRequest, + ListEdgeSlmsResponse, + EdgeSlm, + ListEdgeSlmsPage, + ListEdgeSlmsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEdgeSlmsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEdgeSlmsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEdgeSlmsPagedResponse(ListEdgeSlmsPage page) { + super(page, ListEdgeSlmsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEdgeSlmsPage + extends AbstractPage { + + private ListEdgeSlmsPage( + PageContext context, + ListEdgeSlmsResponse response) { + super(context, response); + } + + private static ListEdgeSlmsPage createEmptyPage() { + return new ListEdgeSlmsPage(null, null); + } + + @Override + protected ListEdgeSlmsPage createPage( + PageContext context, + ListEdgeSlmsResponse response) { + return new ListEdgeSlmsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEdgeSlmsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEdgeSlmsRequest, + ListEdgeSlmsResponse, + EdgeSlm, + ListEdgeSlmsPage, + ListEdgeSlmsFixedSizeCollection> { + + private ListEdgeSlmsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEdgeSlmsFixedSizeCollection createEmptyCollection() { + return new ListEdgeSlmsFixedSizeCollection(null, 0); + } + + @Override + protected ListEdgeSlmsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEdgeSlmsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBlueprintsPagedResponse + extends AbstractPagedListResponse< + ListBlueprintsRequest, + ListBlueprintsResponse, + Blueprint, + ListBlueprintsPage, + ListBlueprintsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBlueprintsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBlueprintsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBlueprintsPagedResponse(ListBlueprintsPage page) { + super(page, ListBlueprintsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBlueprintsPage + extends AbstractPage< + ListBlueprintsRequest, ListBlueprintsResponse, Blueprint, ListBlueprintsPage> { + + private ListBlueprintsPage( + PageContext context, + ListBlueprintsResponse response) { + super(context, response); + } + + private static ListBlueprintsPage createEmptyPage() { + return new ListBlueprintsPage(null, null); + } + + @Override + protected ListBlueprintsPage createPage( + PageContext context, + ListBlueprintsResponse response) { + return new ListBlueprintsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBlueprintsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBlueprintsRequest, + ListBlueprintsResponse, + Blueprint, + ListBlueprintsPage, + ListBlueprintsFixedSizeCollection> { + + private ListBlueprintsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBlueprintsFixedSizeCollection createEmptyCollection() { + return new ListBlueprintsFixedSizeCollection(null, 0); + } + + @Override + protected ListBlueprintsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBlueprintsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBlueprintRevisionsPagedResponse + extends AbstractPagedListResponse< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + Blueprint, + ListBlueprintRevisionsPage, + ListBlueprintRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBlueprintRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBlueprintRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBlueprintRevisionsPagedResponse(ListBlueprintRevisionsPage page) { + super(page, ListBlueprintRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBlueprintRevisionsPage + extends AbstractPage< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + Blueprint, + ListBlueprintRevisionsPage> { + + private ListBlueprintRevisionsPage( + PageContext + context, + ListBlueprintRevisionsResponse response) { + super(context, response); + } + + private static ListBlueprintRevisionsPage createEmptyPage() { + return new ListBlueprintRevisionsPage(null, null); + } + + @Override + protected ListBlueprintRevisionsPage createPage( + PageContext + context, + ListBlueprintRevisionsResponse response) { + return new ListBlueprintRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBlueprintRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + Blueprint, + ListBlueprintRevisionsPage, + ListBlueprintRevisionsFixedSizeCollection> { + + private ListBlueprintRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBlueprintRevisionsFixedSizeCollection createEmptyCollection() { + return new ListBlueprintRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListBlueprintRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBlueprintRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchBlueprintRevisionsPagedResponse + extends AbstractPagedListResponse< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + Blueprint, + SearchBlueprintRevisionsPage, + SearchBlueprintRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchBlueprintRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchBlueprintRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchBlueprintRevisionsPagedResponse(SearchBlueprintRevisionsPage page) { + super(page, SearchBlueprintRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchBlueprintRevisionsPage + extends AbstractPage< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + Blueprint, + SearchBlueprintRevisionsPage> { + + private SearchBlueprintRevisionsPage( + PageContext + context, + SearchBlueprintRevisionsResponse response) { + super(context, response); + } + + private static SearchBlueprintRevisionsPage createEmptyPage() { + return new SearchBlueprintRevisionsPage(null, null); + } + + @Override + protected SearchBlueprintRevisionsPage createPage( + PageContext + context, + SearchBlueprintRevisionsResponse response) { + return new SearchBlueprintRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchBlueprintRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + Blueprint, + SearchBlueprintRevisionsPage, + SearchBlueprintRevisionsFixedSizeCollection> { + + private SearchBlueprintRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchBlueprintRevisionsFixedSizeCollection createEmptyCollection() { + return new SearchBlueprintRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected SearchBlueprintRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchBlueprintRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchDeploymentRevisionsPagedResponse + extends AbstractPagedListResponse< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment, + SearchDeploymentRevisionsPage, + SearchDeploymentRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchDeploymentRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchDeploymentRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchDeploymentRevisionsPagedResponse(SearchDeploymentRevisionsPage page) { + super(page, SearchDeploymentRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchDeploymentRevisionsPage + extends AbstractPage< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment, + SearchDeploymentRevisionsPage> { + + private SearchDeploymentRevisionsPage( + PageContext + context, + SearchDeploymentRevisionsResponse response) { + super(context, response); + } + + private static SearchDeploymentRevisionsPage createEmptyPage() { + return new SearchDeploymentRevisionsPage(null, null); + } + + @Override + protected SearchDeploymentRevisionsPage createPage( + PageContext + context, + SearchDeploymentRevisionsResponse response) { + return new SearchDeploymentRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchDeploymentRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment, + SearchDeploymentRevisionsPage, + SearchDeploymentRevisionsFixedSizeCollection> { + + private SearchDeploymentRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchDeploymentRevisionsFixedSizeCollection createEmptyCollection() { + return new SearchDeploymentRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected SearchDeploymentRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchDeploymentRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListPublicBlueprintsPagedResponse + extends AbstractPagedListResponse< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + PublicBlueprint, + ListPublicBlueprintsPage, + ListPublicBlueprintsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPublicBlueprintsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPublicBlueprintsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPublicBlueprintsPagedResponse(ListPublicBlueprintsPage page) { + super(page, ListPublicBlueprintsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPublicBlueprintsPage + extends AbstractPage< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + PublicBlueprint, + ListPublicBlueprintsPage> { + + private ListPublicBlueprintsPage( + PageContext + context, + ListPublicBlueprintsResponse response) { + super(context, response); + } + + private static ListPublicBlueprintsPage createEmptyPage() { + return new ListPublicBlueprintsPage(null, null); + } + + @Override + protected ListPublicBlueprintsPage createPage( + PageContext + context, + ListPublicBlueprintsResponse response) { + return new ListPublicBlueprintsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPublicBlueprintsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + PublicBlueprint, + ListPublicBlueprintsPage, + ListPublicBlueprintsFixedSizeCollection> { + + private ListPublicBlueprintsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPublicBlueprintsFixedSizeCollection createEmptyCollection() { + return new ListPublicBlueprintsFixedSizeCollection(null, 0); + } + + @Override + protected ListPublicBlueprintsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPublicBlueprintsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListDeploymentsRequest, + ListDeploymentsResponse, + Deployment, + ListDeploymentsPage, + ListDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeploymentsPagedResponse(ListDeploymentsPage page) { + super(page, ListDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeploymentsPage + extends AbstractPage< + ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { + + private ListDeploymentsPage( + PageContext context, + ListDeploymentsResponse response) { + super(context, response); + } + + private static ListDeploymentsPage createEmptyPage() { + return new ListDeploymentsPage(null, null); + } + + @Override + protected ListDeploymentsPage createPage( + PageContext context, + ListDeploymentsResponse response) { + return new ListDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeploymentsRequest, + ListDeploymentsResponse, + Deployment, + ListDeploymentsPage, + ListDeploymentsFixedSizeCollection> { + + private ListDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDeploymentRevisionsPagedResponse + extends AbstractPagedListResponse< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + Deployment, + ListDeploymentRevisionsPage, + ListDeploymentRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeploymentRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeploymentRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeploymentRevisionsPagedResponse(ListDeploymentRevisionsPage page) { + super(page, ListDeploymentRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeploymentRevisionsPage + extends AbstractPage< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + Deployment, + ListDeploymentRevisionsPage> { + + private ListDeploymentRevisionsPage( + PageContext + context, + ListDeploymentRevisionsResponse response) { + super(context, response); + } + + private static ListDeploymentRevisionsPage createEmptyPage() { + return new ListDeploymentRevisionsPage(null, null); + } + + @Override + protected ListDeploymentRevisionsPage createPage( + PageContext + context, + ListDeploymentRevisionsResponse response) { + return new ListDeploymentRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeploymentRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + Deployment, + ListDeploymentRevisionsPage, + ListDeploymentRevisionsFixedSizeCollection> { + + private ListDeploymentRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeploymentRevisionsFixedSizeCollection createEmptyCollection() { + return new ListDeploymentRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListDeploymentRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeploymentRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListHydratedDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment, + ListHydratedDeploymentsPage, + ListHydratedDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListHydratedDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListHydratedDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListHydratedDeploymentsPagedResponse(ListHydratedDeploymentsPage page) { + super(page, ListHydratedDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListHydratedDeploymentsPage + extends AbstractPage< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment, + ListHydratedDeploymentsPage> { + + private ListHydratedDeploymentsPage( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ListHydratedDeploymentsResponse response) { + super(context, response); + } + + private static ListHydratedDeploymentsPage createEmptyPage() { + return new ListHydratedDeploymentsPage(null, null); + } + + @Override + protected ListHydratedDeploymentsPage createPage( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ListHydratedDeploymentsResponse response) { + return new ListHydratedDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListHydratedDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment, + ListHydratedDeploymentsPage, + ListHydratedDeploymentsFixedSizeCollection> { + + private ListHydratedDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListHydratedDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListHydratedDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListHydratedDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListHydratedDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java new file mode 100644 index 000000000000..12a5690c2214 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java @@ -0,0 +1,747 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.stub.TelcoAutomationStubSettings; +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 TelcoAutomationClient}. + * + *

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

    + *
  • The default service address (telcoautomation.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 getOrchestrationCluster 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
+ * TelcoAutomationSettings.Builder telcoAutomationSettingsBuilder =
+ *     TelcoAutomationSettings.newBuilder();
+ * telcoAutomationSettingsBuilder
+ *     .getOrchestrationClusterSettings()
+ *     .setRetrySettings(
+ *         telcoAutomationSettingsBuilder
+ *             .getOrchestrationClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TelcoAutomationSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TelcoAutomationSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listOrchestrationClusters. */ + public PagedCallSettings< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listOrchestrationClustersSettings(); + } + + /** Returns the object with the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings + getOrchestrationClusterSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getOrchestrationClusterSettings(); + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings + createOrchestrationClusterSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createOrchestrationClusterSettings(); + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public OperationCallSettings< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()) + .createOrchestrationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings + deleteOrchestrationClusterSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteOrchestrationClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public OperationCallSettings + deleteOrchestrationClusterOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()) + .deleteOrchestrationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to listEdgeSlms. */ + public PagedCallSettings + listEdgeSlmsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listEdgeSlmsSettings(); + } + + /** Returns the object with the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings getEdgeSlmSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getEdgeSlmSettings(); + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings createEdgeSlmSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createEdgeSlmSettings(); + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public OperationCallSettings + createEdgeSlmOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createEdgeSlmOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings deleteEdgeSlmSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteEdgeSlmSettings(); + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public OperationCallSettings + deleteEdgeSlmOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteEdgeSlmOperationSettings(); + } + + /** Returns the object with the settings used for calls to createBlueprint. */ + public UnaryCallSettings createBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to updateBlueprint. */ + public UnaryCallSettings updateBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).updateBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to getBlueprint. */ + public UnaryCallSettings getBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings deleteBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to listBlueprints. */ + public PagedCallSettings< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listBlueprintsSettings(); + } + + /** Returns the object with the settings used for calls to approveBlueprint. */ + public UnaryCallSettings approveBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).approveBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings proposeBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).proposeBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings rejectBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).rejectBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listBlueprintRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).searchBlueprintRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).searchDeploymentRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings + discardBlueprintChangesSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).discardBlueprintChangesSettings(); + } + + /** Returns the object with the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listPublicBlueprintsSettings(); + } + + /** Returns the object with the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings + getPublicBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getPublicBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to createDeployment. */ + public UnaryCallSettings createDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to updateDeployment. */ + public UnaryCallSettings updateDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).updateDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to removeDeployment. */ + public UnaryCallSettings removeDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).removeDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listDeploymentRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings + discardDeploymentChangesSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).discardDeploymentChangesSettings(); + } + + /** Returns the object with the settings used for calls to applyDeployment. */ + public UnaryCallSettings applyDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).applyDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings + computeDeploymentStatusSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).computeDeploymentStatusSettings(); + } + + /** Returns the object with the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings rollbackDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).rollbackDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings + getHydratedDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getHydratedDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listHydratedDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings + updateHydratedDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).updateHydratedDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings + applyHydratedDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).applyHydratedDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final TelcoAutomationSettings create(TelcoAutomationStubSettings stub) + throws IOException { + return new TelcoAutomationSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TelcoAutomationStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TelcoAutomationStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TelcoAutomationStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TelcoAutomationStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TelcoAutomationStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TelcoAutomationStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TelcoAutomationStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TelcoAutomationStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TelcoAutomationSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TelcoAutomationSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TelcoAutomationStubSettings.newBuilder(clientContext)); + } + + protected Builder(TelcoAutomationSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TelcoAutomationStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TelcoAutomationStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TelcoAutomationStubSettings.newHttpJsonBuilder()); + } + + public TelcoAutomationStubSettings.Builder getStubSettingsBuilder() { + return ((TelcoAutomationStubSettings.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 listOrchestrationClusters. */ + public PagedCallSettings.Builder< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return getStubSettingsBuilder().listOrchestrationClustersSettings(); + } + + /** Returns the builder for the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings.Builder + getOrchestrationClusterSettings() { + return getStubSettingsBuilder().getOrchestrationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings.Builder + createOrchestrationClusterSettings() { + return getStubSettingsBuilder().createOrchestrationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + public OperationCallSettings.Builder< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return getStubSettingsBuilder().createOrchestrationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings.Builder + deleteOrchestrationClusterSettings() { + return getStubSettingsBuilder().deleteOrchestrationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + public OperationCallSettings.Builder< + DeleteOrchestrationClusterRequest, Empty, OperationMetadata> + deleteOrchestrationClusterOperationSettings() { + return getStubSettingsBuilder().deleteOrchestrationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listEdgeSlms. */ + public PagedCallSettings.Builder< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings() { + return getStubSettingsBuilder().listEdgeSlmsSettings(); + } + + /** Returns the builder for the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings.Builder getEdgeSlmSettings() { + return getStubSettingsBuilder().getEdgeSlmSettings(); + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings.Builder createEdgeSlmSettings() { + return getStubSettingsBuilder().createEdgeSlmSettings(); + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + public OperationCallSettings.Builder + createEdgeSlmOperationSettings() { + return getStubSettingsBuilder().createEdgeSlmOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings.Builder deleteEdgeSlmSettings() { + return getStubSettingsBuilder().deleteEdgeSlmSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + public OperationCallSettings.Builder + deleteEdgeSlmOperationSettings() { + return getStubSettingsBuilder().deleteEdgeSlmOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createBlueprint. */ + public UnaryCallSettings.Builder createBlueprintSettings() { + return getStubSettingsBuilder().createBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to updateBlueprint. */ + public UnaryCallSettings.Builder updateBlueprintSettings() { + return getStubSettingsBuilder().updateBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to getBlueprint. */ + public UnaryCallSettings.Builder getBlueprintSettings() { + return getStubSettingsBuilder().getBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings.Builder deleteBlueprintSettings() { + return getStubSettingsBuilder().deleteBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to listBlueprints. */ + public PagedCallSettings.Builder< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return getStubSettingsBuilder().listBlueprintsSettings(); + } + + /** Returns the builder for the settings used for calls to approveBlueprint. */ + public UnaryCallSettings.Builder + approveBlueprintSettings() { + return getStubSettingsBuilder().approveBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings.Builder + proposeBlueprintSettings() { + return getStubSettingsBuilder().proposeBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings.Builder rejectBlueprintSettings() { + return getStubSettingsBuilder().rejectBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings.Builder< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return getStubSettingsBuilder().listBlueprintRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings.Builder< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return getStubSettingsBuilder().searchBlueprintRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings.Builder< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return getStubSettingsBuilder().searchDeploymentRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings.Builder< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesSettings() { + return getStubSettingsBuilder().discardBlueprintChangesSettings(); + } + + /** Returns the builder for the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings.Builder< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return getStubSettingsBuilder().listPublicBlueprintsSettings(); + } + + /** Returns the builder for the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings.Builder + getPublicBlueprintSettings() { + return getStubSettingsBuilder().getPublicBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to createDeployment. */ + public UnaryCallSettings.Builder + createDeploymentSettings() { + return getStubSettingsBuilder().createDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to updateDeployment. */ + public UnaryCallSettings.Builder + updateDeploymentSettings() { + return getStubSettingsBuilder().updateDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to getDeployment. */ + public UnaryCallSettings.Builder getDeploymentSettings() { + return getStubSettingsBuilder().getDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to removeDeployment. */ + public UnaryCallSettings.Builder removeDeploymentSettings() { + return getStubSettingsBuilder().removeDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to listDeployments. */ + public PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return getStubSettingsBuilder().listDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings.Builder< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return getStubSettingsBuilder().listDeploymentRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings.Builder< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesSettings() { + return getStubSettingsBuilder().discardDeploymentChangesSettings(); + } + + /** Returns the builder for the settings used for calls to applyDeployment. */ + public UnaryCallSettings.Builder applyDeploymentSettings() { + return getStubSettingsBuilder().applyDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings.Builder< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusSettings() { + return getStubSettingsBuilder().computeDeploymentStatusSettings(); + } + + /** Returns the builder for the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings.Builder + rollbackDeploymentSettings() { + return getStubSettingsBuilder().rollbackDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings.Builder + getHydratedDeploymentSettings() { + return getStubSettingsBuilder().getHydratedDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings.Builder< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return getStubSettingsBuilder().listHydratedDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings.Builder + updateHydratedDeploymentSettings() { + return getStubSettingsBuilder().updateHydratedDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings.Builder + applyHydratedDeploymentSettings() { + return getStubSettingsBuilder().applyHydratedDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public TelcoAutomationSettings build() throws IOException { + return new TelcoAutomationSettings(this); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/gapic_metadata.json b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/gapic_metadata.json new file mode 100644 index 000000000000..256a9f6e9453 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/gapic_metadata.json @@ -0,0 +1,132 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.telcoautomation.v1", + "libraryPackage": "com.google.cloud.telcoautomation.v1", + "services": { + "TelcoAutomation": { + "clients": { + "grpc": { + "libraryClient": "TelcoAutomationClient", + "rpcs": { + "ApplyDeployment": { + "methods": ["applyDeployment", "applyDeployment", "applyDeployment", "applyDeploymentCallable"] + }, + "ApplyHydratedDeployment": { + "methods": ["applyHydratedDeployment", "applyHydratedDeployment", "applyHydratedDeployment", "applyHydratedDeploymentCallable"] + }, + "ApproveBlueprint": { + "methods": ["approveBlueprint", "approveBlueprint", "approveBlueprint", "approveBlueprintCallable"] + }, + "ComputeDeploymentStatus": { + "methods": ["computeDeploymentStatus", "computeDeploymentStatus", "computeDeploymentStatus", "computeDeploymentStatusCallable"] + }, + "CreateBlueprint": { + "methods": ["createBlueprint", "createBlueprint", "createBlueprint", "createBlueprintCallable"] + }, + "CreateDeployment": { + "methods": ["createDeployment", "createDeployment", "createDeployment", "createDeploymentCallable"] + }, + "CreateEdgeSlm": { + "methods": ["createEdgeSlmAsync", "createEdgeSlmAsync", "createEdgeSlmAsync", "createEdgeSlmOperationCallable", "createEdgeSlmCallable"] + }, + "CreateOrchestrationCluster": { + "methods": ["createOrchestrationClusterAsync", "createOrchestrationClusterAsync", "createOrchestrationClusterAsync", "createOrchestrationClusterOperationCallable", "createOrchestrationClusterCallable"] + }, + "DeleteBlueprint": { + "methods": ["deleteBlueprint", "deleteBlueprint", "deleteBlueprint", "deleteBlueprintCallable"] + }, + "DeleteEdgeSlm": { + "methods": ["deleteEdgeSlmAsync", "deleteEdgeSlmAsync", "deleteEdgeSlmAsync", "deleteEdgeSlmOperationCallable", "deleteEdgeSlmCallable"] + }, + "DeleteOrchestrationCluster": { + "methods": ["deleteOrchestrationClusterAsync", "deleteOrchestrationClusterAsync", "deleteOrchestrationClusterAsync", "deleteOrchestrationClusterOperationCallable", "deleteOrchestrationClusterCallable"] + }, + "DiscardBlueprintChanges": { + "methods": ["discardBlueprintChanges", "discardBlueprintChanges", "discardBlueprintChanges", "discardBlueprintChangesCallable"] + }, + "DiscardDeploymentChanges": { + "methods": ["discardDeploymentChanges", "discardDeploymentChanges", "discardDeploymentChanges", "discardDeploymentChangesCallable"] + }, + "GetBlueprint": { + "methods": ["getBlueprint", "getBlueprint", "getBlueprint", "getBlueprintCallable"] + }, + "GetDeployment": { + "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"] + }, + "GetEdgeSlm": { + "methods": ["getEdgeSlm", "getEdgeSlm", "getEdgeSlm", "getEdgeSlmCallable"] + }, + "GetHydratedDeployment": { + "methods": ["getHydratedDeployment", "getHydratedDeployment", "getHydratedDeployment", "getHydratedDeploymentCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetOrchestrationCluster": { + "methods": ["getOrchestrationCluster", "getOrchestrationCluster", "getOrchestrationCluster", "getOrchestrationClusterCallable"] + }, + "GetPublicBlueprint": { + "methods": ["getPublicBlueprint", "getPublicBlueprint", "getPublicBlueprint", "getPublicBlueprintCallable"] + }, + "ListBlueprintRevisions": { + "methods": ["listBlueprintRevisions", "listBlueprintRevisions", "listBlueprintRevisions", "listBlueprintRevisionsPagedCallable", "listBlueprintRevisionsCallable"] + }, + "ListBlueprints": { + "methods": ["listBlueprints", "listBlueprints", "listBlueprints", "listBlueprintsPagedCallable", "listBlueprintsCallable"] + }, + "ListDeploymentRevisions": { + "methods": ["listDeploymentRevisions", "listDeploymentRevisions", "listDeploymentRevisions", "listDeploymentRevisionsPagedCallable", "listDeploymentRevisionsCallable"] + }, + "ListDeployments": { + "methods": ["listDeployments", "listDeployments", "listDeployments", "listDeploymentsPagedCallable", "listDeploymentsCallable"] + }, + "ListEdgeSlms": { + "methods": ["listEdgeSlms", "listEdgeSlms", "listEdgeSlms", "listEdgeSlmsPagedCallable", "listEdgeSlmsCallable"] + }, + "ListHydratedDeployments": { + "methods": ["listHydratedDeployments", "listHydratedDeployments", "listHydratedDeployments", "listHydratedDeploymentsPagedCallable", "listHydratedDeploymentsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListOrchestrationClusters": { + "methods": ["listOrchestrationClusters", "listOrchestrationClusters", "listOrchestrationClusters", "listOrchestrationClustersPagedCallable", "listOrchestrationClustersCallable"] + }, + "ListPublicBlueprints": { + "methods": ["listPublicBlueprints", "listPublicBlueprints", "listPublicBlueprints", "listPublicBlueprintsPagedCallable", "listPublicBlueprintsCallable"] + }, + "ProposeBlueprint": { + "methods": ["proposeBlueprint", "proposeBlueprint", "proposeBlueprint", "proposeBlueprintCallable"] + }, + "RejectBlueprint": { + "methods": ["rejectBlueprint", "rejectBlueprint", "rejectBlueprint", "rejectBlueprintCallable"] + }, + "RemoveDeployment": { + "methods": ["removeDeployment", "removeDeployment", "removeDeployment", "removeDeploymentCallable"] + }, + "RollbackDeployment": { + "methods": ["rollbackDeployment", "rollbackDeployment", "rollbackDeployment", "rollbackDeploymentCallable"] + }, + "SearchBlueprintRevisions": { + "methods": ["searchBlueprintRevisions", "searchBlueprintRevisions", "searchBlueprintRevisions", "searchBlueprintRevisionsPagedCallable", "searchBlueprintRevisionsCallable"] + }, + "SearchDeploymentRevisions": { + "methods": ["searchDeploymentRevisions", "searchDeploymentRevisions", "searchDeploymentRevisions", "searchDeploymentRevisionsPagedCallable", "searchDeploymentRevisionsCallable"] + }, + "UpdateBlueprint": { + "methods": ["updateBlueprint", "updateBlueprint", "updateBlueprintCallable"] + }, + "UpdateDeployment": { + "methods": ["updateDeployment", "updateDeployment", "updateDeploymentCallable"] + }, + "UpdateHydratedDeployment": { + "methods": ["updateHydratedDeployment", "updateHydratedDeployment", "updateHydratedDeploymentCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/package-info.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/package-info.java new file mode 100644 index 000000000000..ecad82e2d455 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/package-info.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Telco Automation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TelcoAutomationClient ======================= + * + *

Service Description: TelcoAutomation Service manages the control plane cluster a.k.a. + * Orchestration Cluster (GKE cluster with config controller) of TNA. It also exposes blueprint APIs + * which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE + * clusters) and deployment of network functions. + * + *

Sample for TelcoAutomationClient: + * + *

{@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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+ *   OrchestrationClusterName name =
+ *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+ *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.telcoautomation.v1; + +import javax.annotation.Generated; diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java new file mode 100644 index 000000000000..b8422c2fd0bb --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 TelcoAutomation service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcTelcoAutomationCallableFactory 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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationStub.java new file mode 100644 index 000000000000..9d6738db9fd6 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationStub.java @@ -0,0 +1,1648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.stub; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest; +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 TelcoAutomation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcTelcoAutomationStub extends TelcoAutomationStub { + private static final MethodDescriptor< + ListOrchestrationClustersRequest, ListOrchestrationClustersResponse> + listOrchestrationClustersMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListOrchestrationClusters") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOrchestrationClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOrchestrationClustersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getOrchestrationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/GetOrchestrationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(GetOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(OrchestrationCluster.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createOrchestrationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/CreateOrchestrationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteOrchestrationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/DeleteOrchestrationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEdgeSlmsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ListEdgeSlms") + .setRequestMarshaller(ProtoUtils.marshaller(ListEdgeSlmsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEdgeSlmsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getEdgeSlmMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/GetEdgeSlm") + .setRequestMarshaller(ProtoUtils.marshaller(GetEdgeSlmRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EdgeSlm.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createEdgeSlmMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/CreateEdgeSlm") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEdgeSlmRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteEdgeSlmMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/DeleteEdgeSlm") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteEdgeSlmRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/CreateBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/UpdateBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/GetBlueprint") + .setRequestMarshaller(ProtoUtils.marshaller(GetBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/DeleteBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listBlueprintsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ListBlueprints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBlueprintsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBlueprintsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + approveBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ApproveBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(ApproveBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + proposeBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ProposeBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(ProposeBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rejectBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/RejectBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(RejectBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse> + listBlueprintRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListBlueprintRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBlueprintRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBlueprintRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse> + searchBlueprintRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/SearchBlueprintRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchBlueprintRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchBlueprintRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse> + searchDeploymentRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/SearchDeploymentRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchDeploymentRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchDeploymentRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/DiscardBlueprintChanges") + .setRequestMarshaller( + ProtoUtils.marshaller(DiscardBlueprintChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DiscardBlueprintChangesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listPublicBlueprintsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListPublicBlueprints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPublicBlueprintsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPublicBlueprintsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPublicBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/GetPublicBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPublicBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PublicBlueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/CreateDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/UpdateDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/GetDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + removeDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/RemoveDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDeploymentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ListDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse> + listDeploymentRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListDeploymentRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/DiscardDeploymentChanges") + .setRequestMarshaller( + ProtoUtils.marshaller(DiscardDeploymentChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DiscardDeploymentChangesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + applyDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ApplyDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(ApplyDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ComputeDeploymentStatus") + .setRequestMarshaller( + ProtoUtils.marshaller(ComputeDeploymentStatusRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ComputeDeploymentStatusResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rollbackDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/RollbackDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(RollbackDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getHydratedDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/GetHydratedDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse> + listHydratedDeploymentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListHydratedDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListHydratedDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListHydratedDeploymentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateHydratedDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/UpdateHydratedDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + applyHydratedDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ApplyHydratedDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(ApplyHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable + listOrchestrationClustersCallable; + private final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable; + private final UnaryCallable + getOrchestrationClusterCallable; + private final UnaryCallable + createOrchestrationClusterCallable; + private final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable; + private final UnaryCallable + deleteOrchestrationClusterCallable; + private final OperationCallable + deleteOrchestrationClusterOperationCallable; + private final UnaryCallable listEdgeSlmsCallable; + private final UnaryCallable + listEdgeSlmsPagedCallable; + private final UnaryCallable getEdgeSlmCallable; + private final UnaryCallable createEdgeSlmCallable; + private final OperationCallable + createEdgeSlmOperationCallable; + private final UnaryCallable deleteEdgeSlmCallable; + private final OperationCallable + deleteEdgeSlmOperationCallable; + private final UnaryCallable createBlueprintCallable; + private final UnaryCallable updateBlueprintCallable; + private final UnaryCallable getBlueprintCallable; + private final UnaryCallable deleteBlueprintCallable; + private final UnaryCallable listBlueprintsCallable; + private final UnaryCallable + listBlueprintsPagedCallable; + private final UnaryCallable approveBlueprintCallable; + private final UnaryCallable proposeBlueprintCallable; + private final UnaryCallable rejectBlueprintCallable; + private final UnaryCallable + listBlueprintRevisionsCallable; + private final UnaryCallable + listBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchBlueprintRevisionsCallable; + private final UnaryCallable< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchDeploymentRevisionsCallable; + private final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardBlueprintChangesCallable; + private final UnaryCallable + listPublicBlueprintsCallable; + private final UnaryCallable + listPublicBlueprintsPagedCallable; + private final UnaryCallable + getPublicBlueprintCallable; + private final UnaryCallable createDeploymentCallable; + private final UnaryCallable updateDeploymentCallable; + private final UnaryCallable getDeploymentCallable; + private final UnaryCallable removeDeploymentCallable; + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable + listDeploymentRevisionsCallable; + private final UnaryCallable + listDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardDeploymentChangesCallable; + private final UnaryCallable applyDeploymentCallable; + private final UnaryCallable + computeDeploymentStatusCallable; + private final UnaryCallable rollbackDeploymentCallable; + private final UnaryCallable + getHydratedDeploymentCallable; + private final UnaryCallable + listHydratedDeploymentsCallable; + private final UnaryCallable + listHydratedDeploymentsPagedCallable; + private final UnaryCallable + updateHydratedDeploymentCallable; + private final UnaryCallable + applyHydratedDeploymentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTelcoAutomationStub create(TelcoAutomationStubSettings settings) + throws IOException { + return new GrpcTelcoAutomationStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTelcoAutomationStub create(ClientContext clientContext) + throws IOException { + return new GrpcTelcoAutomationStub( + TelcoAutomationStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTelcoAutomationStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTelcoAutomationStub( + TelcoAutomationStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTelcoAutomationStub, 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 GrpcTelcoAutomationStub( + TelcoAutomationStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTelcoAutomationCallableFactory()); + } + + /** + * Constructs an instance of GrpcTelcoAutomationStub, 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 GrpcTelcoAutomationStub( + TelcoAutomationStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listOrchestrationClustersTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listOrchestrationClustersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getOrchestrationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOrchestrationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createOrchestrationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOrchestrationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteOrchestrationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOrchestrationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listEdgeSlmsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEdgeSlmsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getEdgeSlmTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEdgeSlmMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEdgeSlmTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEdgeSlmMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteEdgeSlmTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteEdgeSlmMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("blueprint.name", String.valueOf(request.getBlueprint().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listBlueprintsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBlueprintsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings approveBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(approveBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings proposeBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(proposeBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings rejectBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rejectBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listBlueprintRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listBlueprintRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchBlueprintRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchBlueprintRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchDeploymentRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchDeploymentRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + discardBlueprintChangesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(discardBlueprintChangesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPublicBlueprintsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPublicBlueprintsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getPublicBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPublicBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("deployment.name", String.valueOf(request.getDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings removeDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDeploymentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDeploymentRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listDeploymentRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + discardDeploymentChangesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(discardDeploymentChangesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings applyDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(applyDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + computeDeploymentStatusTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(computeDeploymentStatusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings rollbackDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getHydratedDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getHydratedDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listHydratedDeploymentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listHydratedDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateHydratedDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateHydratedDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "hydrated_deployment.name", + String.valueOf(request.getHydratedDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + applyHydratedDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(applyHydratedDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listOrchestrationClustersCallable = + callableFactory.createUnaryCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.listOrchestrationClustersPagedCallable = + callableFactory.createPagedCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.getOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + getOrchestrationClusterTransportSettings, + settings.getOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterOperationSettings(), + clientContext, + operationsStub); + this.deleteOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterSettings(), + clientContext); + this.deleteOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterOperationSettings(), + clientContext, + operationsStub); + this.listEdgeSlmsCallable = + callableFactory.createUnaryCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.listEdgeSlmsPagedCallable = + callableFactory.createPagedCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.getEdgeSlmCallable = + callableFactory.createUnaryCallable( + getEdgeSlmTransportSettings, settings.getEdgeSlmSettings(), clientContext); + this.createEdgeSlmCallable = + callableFactory.createUnaryCallable( + createEdgeSlmTransportSettings, settings.createEdgeSlmSettings(), clientContext); + this.createEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + createEdgeSlmTransportSettings, + settings.createEdgeSlmOperationSettings(), + clientContext, + operationsStub); + this.deleteEdgeSlmCallable = + callableFactory.createUnaryCallable( + deleteEdgeSlmTransportSettings, settings.deleteEdgeSlmSettings(), clientContext); + this.deleteEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + deleteEdgeSlmTransportSettings, + settings.deleteEdgeSlmOperationSettings(), + clientContext, + operationsStub); + this.createBlueprintCallable = + callableFactory.createUnaryCallable( + createBlueprintTransportSettings, settings.createBlueprintSettings(), clientContext); + this.updateBlueprintCallable = + callableFactory.createUnaryCallable( + updateBlueprintTransportSettings, settings.updateBlueprintSettings(), clientContext); + this.getBlueprintCallable = + callableFactory.createUnaryCallable( + getBlueprintTransportSettings, settings.getBlueprintSettings(), clientContext); + this.deleteBlueprintCallable = + callableFactory.createUnaryCallable( + deleteBlueprintTransportSettings, settings.deleteBlueprintSettings(), clientContext); + this.listBlueprintsCallable = + callableFactory.createUnaryCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.listBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.approveBlueprintCallable = + callableFactory.createUnaryCallable( + approveBlueprintTransportSettings, settings.approveBlueprintSettings(), clientContext); + this.proposeBlueprintCallable = + callableFactory.createUnaryCallable( + proposeBlueprintTransportSettings, settings.proposeBlueprintSettings(), clientContext); + this.rejectBlueprintCallable = + callableFactory.createUnaryCallable( + rejectBlueprintTransportSettings, settings.rejectBlueprintSettings(), clientContext); + this.listBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.listBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.discardBlueprintChangesCallable = + callableFactory.createUnaryCallable( + discardBlueprintChangesTransportSettings, + settings.discardBlueprintChangesSettings(), + clientContext); + this.listPublicBlueprintsCallable = + callableFactory.createUnaryCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.listPublicBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.getPublicBlueprintCallable = + callableFactory.createUnaryCallable( + getPublicBlueprintTransportSettings, + settings.getPublicBlueprintSettings(), + clientContext); + this.createDeploymentCallable = + callableFactory.createUnaryCallable( + createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext); + this.updateDeploymentCallable = + callableFactory.createUnaryCallable( + updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext); + this.getDeploymentCallable = + callableFactory.createUnaryCallable( + getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext); + this.removeDeploymentCallable = + callableFactory.createUnaryCallable( + removeDeploymentTransportSettings, settings.removeDeploymentSettings(), clientContext); + this.listDeploymentsCallable = + callableFactory.createUnaryCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.listDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.discardDeploymentChangesCallable = + callableFactory.createUnaryCallable( + discardDeploymentChangesTransportSettings, + settings.discardDeploymentChangesSettings(), + clientContext); + this.applyDeploymentCallable = + callableFactory.createUnaryCallable( + applyDeploymentTransportSettings, settings.applyDeploymentSettings(), clientContext); + this.computeDeploymentStatusCallable = + callableFactory.createUnaryCallable( + computeDeploymentStatusTransportSettings, + settings.computeDeploymentStatusSettings(), + clientContext); + this.rollbackDeploymentCallable = + callableFactory.createUnaryCallable( + rollbackDeploymentTransportSettings, + settings.rollbackDeploymentSettings(), + clientContext); + this.getHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + getHydratedDeploymentTransportSettings, + settings.getHydratedDeploymentSettings(), + clientContext); + this.listHydratedDeploymentsCallable = + callableFactory.createUnaryCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.listHydratedDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.updateHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + updateHydratedDeploymentTransportSettings, + settings.updateHydratedDeploymentSettings(), + clientContext); + this.applyHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + applyHydratedDeploymentTransportSettings, + settings.applyHydratedDeploymentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listOrchestrationClustersCallable() { + return listOrchestrationClustersCallable; + } + + @Override + public UnaryCallable + listOrchestrationClustersPagedCallable() { + return listOrchestrationClustersPagedCallable; + } + + @Override + public UnaryCallable + getOrchestrationClusterCallable() { + return getOrchestrationClusterCallable; + } + + @Override + public UnaryCallable + createOrchestrationClusterCallable() { + return createOrchestrationClusterCallable; + } + + @Override + public OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return createOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable + deleteOrchestrationClusterCallable() { + return deleteOrchestrationClusterCallable; + } + + @Override + public OperationCallable + deleteOrchestrationClusterOperationCallable() { + return deleteOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable listEdgeSlmsCallable() { + return listEdgeSlmsCallable; + } + + @Override + public UnaryCallable listEdgeSlmsPagedCallable() { + return listEdgeSlmsPagedCallable; + } + + @Override + public UnaryCallable getEdgeSlmCallable() { + return getEdgeSlmCallable; + } + + @Override + public UnaryCallable createEdgeSlmCallable() { + return createEdgeSlmCallable; + } + + @Override + public OperationCallable + createEdgeSlmOperationCallable() { + return createEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable deleteEdgeSlmCallable() { + return deleteEdgeSlmCallable; + } + + @Override + public OperationCallable + deleteEdgeSlmOperationCallable() { + return deleteEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable createBlueprintCallable() { + return createBlueprintCallable; + } + + @Override + public UnaryCallable updateBlueprintCallable() { + return updateBlueprintCallable; + } + + @Override + public UnaryCallable getBlueprintCallable() { + return getBlueprintCallable; + } + + @Override + public UnaryCallable deleteBlueprintCallable() { + return deleteBlueprintCallable; + } + + @Override + public UnaryCallable listBlueprintsCallable() { + return listBlueprintsCallable; + } + + @Override + public UnaryCallable + listBlueprintsPagedCallable() { + return listBlueprintsPagedCallable; + } + + @Override + public UnaryCallable approveBlueprintCallable() { + return approveBlueprintCallable; + } + + @Override + public UnaryCallable proposeBlueprintCallable() { + return proposeBlueprintCallable; + } + + @Override + public UnaryCallable rejectBlueprintCallable() { + return rejectBlueprintCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsCallable() { + return listBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsPagedCallable() { + return listBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsCallable() { + return searchBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsPagedCallable() { + return searchBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsCallable() { + return searchDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsPagedCallable() { + return searchDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardBlueprintChangesCallable() { + return discardBlueprintChangesCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsCallable() { + return listPublicBlueprintsCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsPagedCallable() { + return listPublicBlueprintsPagedCallable; + } + + @Override + public UnaryCallable getPublicBlueprintCallable() { + return getPublicBlueprintCallable; + } + + @Override + public UnaryCallable createDeploymentCallable() { + return createDeploymentCallable; + } + + @Override + public UnaryCallable updateDeploymentCallable() { + return updateDeploymentCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @Override + public UnaryCallable removeDeploymentCallable() { + return removeDeploymentCallable; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsCallable() { + return listDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsPagedCallable() { + return listDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardDeploymentChangesCallable() { + return discardDeploymentChangesCallable; + } + + @Override + public UnaryCallable applyDeploymentCallable() { + return applyDeploymentCallable; + } + + @Override + public UnaryCallable + computeDeploymentStatusCallable() { + return computeDeploymentStatusCallable; + } + + @Override + public UnaryCallable rollbackDeploymentCallable() { + return rollbackDeploymentCallable; + } + + @Override + public UnaryCallable + getHydratedDeploymentCallable() { + return getHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsCallable() { + return listHydratedDeploymentsCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsPagedCallable() { + return listHydratedDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + updateHydratedDeploymentCallable() { + return updateHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + applyHydratedDeploymentCallable() { + return applyHydratedDeploymentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationCallableFactory.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationCallableFactory.java new file mode 100644 index 000000000000..d1e9b3b86bd3 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TelcoAutomation service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTelcoAutomationCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationStub.java new file mode 100644 index 000000000000..f87644dc80fb --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/HttpJsonTelcoAutomationStub.java @@ -0,0 +1,2799 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.stub; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TelcoAutomation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTelcoAutomationStub extends TelcoAutomationStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(EdgeSlm.getDescriptor()) + .add(OrchestrationCluster.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListOrchestrationClustersRequest, ListOrchestrationClustersResponse> + listOrchestrationClustersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListOrchestrationClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/orchestrationClusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOrchestrationClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOrchestrationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/GetOrchestrationCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrchestrationCluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createOrchestrationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/CreateOrchestrationCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/orchestrationClusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "orchestrationClusterId", + request.getOrchestrationClusterId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "orchestrationCluster", + request.getOrchestrationCluster(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateOrchestrationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteOrchestrationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/DeleteOrchestrationCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteOrchestrationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listEdgeSlmsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ListEdgeSlms") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/edgeSlms", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEdgeSlmsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getEdgeSlmMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/GetEdgeSlm") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/edgeSlms/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EdgeSlm.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createEdgeSlmMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/CreateEdgeSlm") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/edgeSlms", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "edgeSlmId", request.getEdgeSlmId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("edgeSlm", request.getEdgeSlm(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateEdgeSlmRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteEdgeSlmMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/DeleteEdgeSlm") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/edgeSlms/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteEdgeSlmRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/CreateBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "blueprintId", request.getBlueprintId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("blueprint", request.getBlueprint(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/UpdateBlueprint") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{blueprint.name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "blueprint.name", request.getBlueprint().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("blueprint", request.getBlueprint(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/GetBlueprint") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/DeleteBlueprint") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBlueprintsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ListBlueprints") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBlueprintsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + approveBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ApproveBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:approve", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + proposeBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ProposeBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:propose", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + rejectBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/RejectBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:reject", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse> + listBlueprintRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListBlueprintRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:listRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBlueprintRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse> + searchBlueprintRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/SearchBlueprintRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints:searchRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchBlueprintRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse> + searchDeploymentRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/SearchDeploymentRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments:searchRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchDeploymentRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/DiscardBlueprintChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:discard", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DiscardBlueprintChangesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse> + listPublicBlueprintsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListPublicBlueprints") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/publicBlueprints", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPublicBlueprintsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPublicBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/GetPublicBlueprint") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/publicBlueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PublicBlueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/CreateDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "deploymentId", request.getDeploymentId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deployment", request.getDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/UpdateDeployment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{deployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "deployment.name", request.getDeployment().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deployment", request.getDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/GetDeployment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + removeDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/RemoveDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:remove", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDeploymentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ListDeployments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeploymentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse> + listDeploymentRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListDeploymentRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:listRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeploymentRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/DiscardDeploymentChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:discard", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DiscardDeploymentChangesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + applyDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1.TelcoAutomation/ApplyDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:apply", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ComputeDeploymentStatus") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:computeDeploymentStatus", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ComputeDeploymentStatusResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + rollbackDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/RollbackDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:rollback", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getHydratedDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/GetHydratedDeployment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HydratedDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse> + listHydratedDeploymentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ListHydratedDeployments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/orchestrationClusters/*/deployments/*}/hydratedDeployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListHydratedDeploymentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateHydratedDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/UpdateHydratedDeployment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{hydratedDeployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "hydratedDeployment.name", + request.getHydratedDeployment().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "hydratedDeployment", request.getHydratedDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HydratedDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + applyHydratedDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1.TelcoAutomation/ApplyHydratedDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}:apply", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HydratedDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listOrchestrationClustersCallable; + private final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable; + private final UnaryCallable + getOrchestrationClusterCallable; + private final UnaryCallable + createOrchestrationClusterCallable; + private final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable; + private final UnaryCallable + deleteOrchestrationClusterCallable; + private final OperationCallable + deleteOrchestrationClusterOperationCallable; + private final UnaryCallable listEdgeSlmsCallable; + private final UnaryCallable + listEdgeSlmsPagedCallable; + private final UnaryCallable getEdgeSlmCallable; + private final UnaryCallable createEdgeSlmCallable; + private final OperationCallable + createEdgeSlmOperationCallable; + private final UnaryCallable deleteEdgeSlmCallable; + private final OperationCallable + deleteEdgeSlmOperationCallable; + private final UnaryCallable createBlueprintCallable; + private final UnaryCallable updateBlueprintCallable; + private final UnaryCallable getBlueprintCallable; + private final UnaryCallable deleteBlueprintCallable; + private final UnaryCallable listBlueprintsCallable; + private final UnaryCallable + listBlueprintsPagedCallable; + private final UnaryCallable approveBlueprintCallable; + private final UnaryCallable proposeBlueprintCallable; + private final UnaryCallable rejectBlueprintCallable; + private final UnaryCallable + listBlueprintRevisionsCallable; + private final UnaryCallable + listBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchBlueprintRevisionsCallable; + private final UnaryCallable< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchDeploymentRevisionsCallable; + private final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardBlueprintChangesCallable; + private final UnaryCallable + listPublicBlueprintsCallable; + private final UnaryCallable + listPublicBlueprintsPagedCallable; + private final UnaryCallable + getPublicBlueprintCallable; + private final UnaryCallable createDeploymentCallable; + private final UnaryCallable updateDeploymentCallable; + private final UnaryCallable getDeploymentCallable; + private final UnaryCallable removeDeploymentCallable; + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable + listDeploymentRevisionsCallable; + private final UnaryCallable + listDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardDeploymentChangesCallable; + private final UnaryCallable applyDeploymentCallable; + private final UnaryCallable + computeDeploymentStatusCallable; + private final UnaryCallable rollbackDeploymentCallable; + private final UnaryCallable + getHydratedDeploymentCallable; + private final UnaryCallable + listHydratedDeploymentsCallable; + private final UnaryCallable + listHydratedDeploymentsPagedCallable; + private final UnaryCallable + updateHydratedDeploymentCallable; + private final UnaryCallable + applyHydratedDeploymentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTelcoAutomationStub create(TelcoAutomationStubSettings settings) + throws IOException { + return new HttpJsonTelcoAutomationStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTelcoAutomationStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTelcoAutomationStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTelcoAutomationStub, 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 HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTelcoAutomationCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTelcoAutomationStub, 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 HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations}") + .build()) + .build()); + + HttpJsonCallSettings + listOrchestrationClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listOrchestrationClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getOrchestrationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrchestrationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createOrchestrationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createOrchestrationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteOrchestrationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteOrchestrationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listEdgeSlmsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEdgeSlmsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getEdgeSlmTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getEdgeSlmMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createEdgeSlmTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createEdgeSlmMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteEdgeSlmTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteEdgeSlmMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("blueprint.name", String.valueOf(request.getBlueprint().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBlueprintsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBlueprintsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings approveBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(approveBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings proposeBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(proposeBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings rejectBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(rejectBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBlueprintRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBlueprintRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + searchBlueprintRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchBlueprintRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + searchDeploymentRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchDeploymentRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + discardBlueprintChangesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(discardBlueprintChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listPublicBlueprintsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listPublicBlueprintsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getPublicBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPublicBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("deployment.name", String.valueOf(request.getDeployment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings removeDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeploymentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeploymentRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeploymentRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + discardDeploymentChangesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(discardDeploymentChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings applyDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(applyDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + computeDeploymentStatusTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(computeDeploymentStatusMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + rollbackDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(rollbackDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getHydratedDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getHydratedDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listHydratedDeploymentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listHydratedDeploymentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateHydratedDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateHydratedDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "hydrated_deployment.name", + String.valueOf(request.getHydratedDeployment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + applyHydratedDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(applyHydratedDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listOrchestrationClustersCallable = + callableFactory.createUnaryCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.listOrchestrationClustersPagedCallable = + callableFactory.createPagedCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.getOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + getOrchestrationClusterTransportSettings, + settings.getOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterSettings(), + clientContext); + this.deleteOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listEdgeSlmsCallable = + callableFactory.createUnaryCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.listEdgeSlmsPagedCallable = + callableFactory.createPagedCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.getEdgeSlmCallable = + callableFactory.createUnaryCallable( + getEdgeSlmTransportSettings, settings.getEdgeSlmSettings(), clientContext); + this.createEdgeSlmCallable = + callableFactory.createUnaryCallable( + createEdgeSlmTransportSettings, settings.createEdgeSlmSettings(), clientContext); + this.createEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + createEdgeSlmTransportSettings, + settings.createEdgeSlmOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteEdgeSlmCallable = + callableFactory.createUnaryCallable( + deleteEdgeSlmTransportSettings, settings.deleteEdgeSlmSettings(), clientContext); + this.deleteEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + deleteEdgeSlmTransportSettings, + settings.deleteEdgeSlmOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createBlueprintCallable = + callableFactory.createUnaryCallable( + createBlueprintTransportSettings, settings.createBlueprintSettings(), clientContext); + this.updateBlueprintCallable = + callableFactory.createUnaryCallable( + updateBlueprintTransportSettings, settings.updateBlueprintSettings(), clientContext); + this.getBlueprintCallable = + callableFactory.createUnaryCallable( + getBlueprintTransportSettings, settings.getBlueprintSettings(), clientContext); + this.deleteBlueprintCallable = + callableFactory.createUnaryCallable( + deleteBlueprintTransportSettings, settings.deleteBlueprintSettings(), clientContext); + this.listBlueprintsCallable = + callableFactory.createUnaryCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.listBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.approveBlueprintCallable = + callableFactory.createUnaryCallable( + approveBlueprintTransportSettings, settings.approveBlueprintSettings(), clientContext); + this.proposeBlueprintCallable = + callableFactory.createUnaryCallable( + proposeBlueprintTransportSettings, settings.proposeBlueprintSettings(), clientContext); + this.rejectBlueprintCallable = + callableFactory.createUnaryCallable( + rejectBlueprintTransportSettings, settings.rejectBlueprintSettings(), clientContext); + this.listBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.listBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.discardBlueprintChangesCallable = + callableFactory.createUnaryCallable( + discardBlueprintChangesTransportSettings, + settings.discardBlueprintChangesSettings(), + clientContext); + this.listPublicBlueprintsCallable = + callableFactory.createUnaryCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.listPublicBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.getPublicBlueprintCallable = + callableFactory.createUnaryCallable( + getPublicBlueprintTransportSettings, + settings.getPublicBlueprintSettings(), + clientContext); + this.createDeploymentCallable = + callableFactory.createUnaryCallable( + createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext); + this.updateDeploymentCallable = + callableFactory.createUnaryCallable( + updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext); + this.getDeploymentCallable = + callableFactory.createUnaryCallable( + getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext); + this.removeDeploymentCallable = + callableFactory.createUnaryCallable( + removeDeploymentTransportSettings, settings.removeDeploymentSettings(), clientContext); + this.listDeploymentsCallable = + callableFactory.createUnaryCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.listDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.discardDeploymentChangesCallable = + callableFactory.createUnaryCallable( + discardDeploymentChangesTransportSettings, + settings.discardDeploymentChangesSettings(), + clientContext); + this.applyDeploymentCallable = + callableFactory.createUnaryCallable( + applyDeploymentTransportSettings, settings.applyDeploymentSettings(), clientContext); + this.computeDeploymentStatusCallable = + callableFactory.createUnaryCallable( + computeDeploymentStatusTransportSettings, + settings.computeDeploymentStatusSettings(), + clientContext); + this.rollbackDeploymentCallable = + callableFactory.createUnaryCallable( + rollbackDeploymentTransportSettings, + settings.rollbackDeploymentSettings(), + clientContext); + this.getHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + getHydratedDeploymentTransportSettings, + settings.getHydratedDeploymentSettings(), + clientContext); + this.listHydratedDeploymentsCallable = + callableFactory.createUnaryCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.listHydratedDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.updateHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + updateHydratedDeploymentTransportSettings, + settings.updateHydratedDeploymentSettings(), + clientContext); + this.applyHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + applyHydratedDeploymentTransportSettings, + settings.applyHydratedDeploymentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listOrchestrationClustersMethodDescriptor); + methodDescriptors.add(getOrchestrationClusterMethodDescriptor); + methodDescriptors.add(createOrchestrationClusterMethodDescriptor); + methodDescriptors.add(deleteOrchestrationClusterMethodDescriptor); + methodDescriptors.add(listEdgeSlmsMethodDescriptor); + methodDescriptors.add(getEdgeSlmMethodDescriptor); + methodDescriptors.add(createEdgeSlmMethodDescriptor); + methodDescriptors.add(deleteEdgeSlmMethodDescriptor); + methodDescriptors.add(createBlueprintMethodDescriptor); + methodDescriptors.add(updateBlueprintMethodDescriptor); + methodDescriptors.add(getBlueprintMethodDescriptor); + methodDescriptors.add(deleteBlueprintMethodDescriptor); + methodDescriptors.add(listBlueprintsMethodDescriptor); + methodDescriptors.add(approveBlueprintMethodDescriptor); + methodDescriptors.add(proposeBlueprintMethodDescriptor); + methodDescriptors.add(rejectBlueprintMethodDescriptor); + methodDescriptors.add(listBlueprintRevisionsMethodDescriptor); + methodDescriptors.add(searchBlueprintRevisionsMethodDescriptor); + methodDescriptors.add(searchDeploymentRevisionsMethodDescriptor); + methodDescriptors.add(discardBlueprintChangesMethodDescriptor); + methodDescriptors.add(listPublicBlueprintsMethodDescriptor); + methodDescriptors.add(getPublicBlueprintMethodDescriptor); + methodDescriptors.add(createDeploymentMethodDescriptor); + methodDescriptors.add(updateDeploymentMethodDescriptor); + methodDescriptors.add(getDeploymentMethodDescriptor); + methodDescriptors.add(removeDeploymentMethodDescriptor); + methodDescriptors.add(listDeploymentsMethodDescriptor); + methodDescriptors.add(listDeploymentRevisionsMethodDescriptor); + methodDescriptors.add(discardDeploymentChangesMethodDescriptor); + methodDescriptors.add(applyDeploymentMethodDescriptor); + methodDescriptors.add(computeDeploymentStatusMethodDescriptor); + methodDescriptors.add(rollbackDeploymentMethodDescriptor); + methodDescriptors.add(getHydratedDeploymentMethodDescriptor); + methodDescriptors.add(listHydratedDeploymentsMethodDescriptor); + methodDescriptors.add(updateHydratedDeploymentMethodDescriptor); + methodDescriptors.add(applyHydratedDeploymentMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listOrchestrationClustersCallable() { + return listOrchestrationClustersCallable; + } + + @Override + public UnaryCallable + listOrchestrationClustersPagedCallable() { + return listOrchestrationClustersPagedCallable; + } + + @Override + public UnaryCallable + getOrchestrationClusterCallable() { + return getOrchestrationClusterCallable; + } + + @Override + public UnaryCallable + createOrchestrationClusterCallable() { + return createOrchestrationClusterCallable; + } + + @Override + public OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return createOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable + deleteOrchestrationClusterCallable() { + return deleteOrchestrationClusterCallable; + } + + @Override + public OperationCallable + deleteOrchestrationClusterOperationCallable() { + return deleteOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable listEdgeSlmsCallable() { + return listEdgeSlmsCallable; + } + + @Override + public UnaryCallable listEdgeSlmsPagedCallable() { + return listEdgeSlmsPagedCallable; + } + + @Override + public UnaryCallable getEdgeSlmCallable() { + return getEdgeSlmCallable; + } + + @Override + public UnaryCallable createEdgeSlmCallable() { + return createEdgeSlmCallable; + } + + @Override + public OperationCallable + createEdgeSlmOperationCallable() { + return createEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable deleteEdgeSlmCallable() { + return deleteEdgeSlmCallable; + } + + @Override + public OperationCallable + deleteEdgeSlmOperationCallable() { + return deleteEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable createBlueprintCallable() { + return createBlueprintCallable; + } + + @Override + public UnaryCallable updateBlueprintCallable() { + return updateBlueprintCallable; + } + + @Override + public UnaryCallable getBlueprintCallable() { + return getBlueprintCallable; + } + + @Override + public UnaryCallable deleteBlueprintCallable() { + return deleteBlueprintCallable; + } + + @Override + public UnaryCallable listBlueprintsCallable() { + return listBlueprintsCallable; + } + + @Override + public UnaryCallable + listBlueprintsPagedCallable() { + return listBlueprintsPagedCallable; + } + + @Override + public UnaryCallable approveBlueprintCallable() { + return approveBlueprintCallable; + } + + @Override + public UnaryCallable proposeBlueprintCallable() { + return proposeBlueprintCallable; + } + + @Override + public UnaryCallable rejectBlueprintCallable() { + return rejectBlueprintCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsCallable() { + return listBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsPagedCallable() { + return listBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsCallable() { + return searchBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsPagedCallable() { + return searchBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsCallable() { + return searchDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsPagedCallable() { + return searchDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardBlueprintChangesCallable() { + return discardBlueprintChangesCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsCallable() { + return listPublicBlueprintsCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsPagedCallable() { + return listPublicBlueprintsPagedCallable; + } + + @Override + public UnaryCallable getPublicBlueprintCallable() { + return getPublicBlueprintCallable; + } + + @Override + public UnaryCallable createDeploymentCallable() { + return createDeploymentCallable; + } + + @Override + public UnaryCallable updateDeploymentCallable() { + return updateDeploymentCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @Override + public UnaryCallable removeDeploymentCallable() { + return removeDeploymentCallable; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsCallable() { + return listDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsPagedCallable() { + return listDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardDeploymentChangesCallable() { + return discardDeploymentChangesCallable; + } + + @Override + public UnaryCallable applyDeploymentCallable() { + return applyDeploymentCallable; + } + + @Override + public UnaryCallable + computeDeploymentStatusCallable() { + return computeDeploymentStatusCallable; + } + + @Override + public UnaryCallable rollbackDeploymentCallable() { + return rollbackDeploymentCallable; + } + + @Override + public UnaryCallable + getHydratedDeploymentCallable() { + return getHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsCallable() { + return listHydratedDeploymentsCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsPagedCallable() { + return listHydratedDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + updateHydratedDeploymentCallable() { + return updateHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + applyHydratedDeploymentCallable() { + return applyHydratedDeploymentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java new file mode 100644 index 000000000000..9331b58ac044 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java @@ -0,0 +1,371 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.stub; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest; +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 TelcoAutomation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class TelcoAutomationStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listOrchestrationClustersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listOrchestrationClustersPagedCallable()"); + } + + public UnaryCallable + listOrchestrationClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listOrchestrationClustersCallable()"); + } + + public UnaryCallable + getOrchestrationClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getOrchestrationClusterCallable()"); + } + + public OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createOrchestrationClusterOperationCallable()"); + } + + public UnaryCallable + createOrchestrationClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: createOrchestrationClusterCallable()"); + } + + public OperationCallable + deleteOrchestrationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteOrchestrationClusterOperationCallable()"); + } + + public UnaryCallable + deleteOrchestrationClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteOrchestrationClusterCallable()"); + } + + public UnaryCallable listEdgeSlmsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEdgeSlmsPagedCallable()"); + } + + public UnaryCallable listEdgeSlmsCallable() { + throw new UnsupportedOperationException("Not implemented: listEdgeSlmsCallable()"); + } + + public UnaryCallable getEdgeSlmCallable() { + throw new UnsupportedOperationException("Not implemented: getEdgeSlmCallable()"); + } + + public OperationCallable + createEdgeSlmOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createEdgeSlmOperationCallable()"); + } + + public UnaryCallable createEdgeSlmCallable() { + throw new UnsupportedOperationException("Not implemented: createEdgeSlmCallable()"); + } + + public OperationCallable + deleteEdgeSlmOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEdgeSlmOperationCallable()"); + } + + public UnaryCallable deleteEdgeSlmCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEdgeSlmCallable()"); + } + + public UnaryCallable createBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: createBlueprintCallable()"); + } + + public UnaryCallable updateBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: updateBlueprintCallable()"); + } + + public UnaryCallable getBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: getBlueprintCallable()"); + } + + public UnaryCallable deleteBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBlueprintCallable()"); + } + + public UnaryCallable + listBlueprintsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBlueprintsPagedCallable()"); + } + + public UnaryCallable listBlueprintsCallable() { + throw new UnsupportedOperationException("Not implemented: listBlueprintsCallable()"); + } + + public UnaryCallable approveBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: approveBlueprintCallable()"); + } + + public UnaryCallable proposeBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: proposeBlueprintCallable()"); + } + + public UnaryCallable rejectBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: rejectBlueprintCallable()"); + } + + public UnaryCallable + listBlueprintRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listBlueprintRevisionsPagedCallable()"); + } + + public UnaryCallable + listBlueprintRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listBlueprintRevisionsCallable()"); + } + + public UnaryCallable + searchBlueprintRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchBlueprintRevisionsPagedCallable()"); + } + + public UnaryCallable + searchBlueprintRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: searchBlueprintRevisionsCallable()"); + } + + public UnaryCallable + searchDeploymentRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchDeploymentRevisionsPagedCallable()"); + } + + public UnaryCallable + searchDeploymentRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: searchDeploymentRevisionsCallable()"); + } + + public UnaryCallable + discardBlueprintChangesCallable() { + throw new UnsupportedOperationException("Not implemented: discardBlueprintChangesCallable()"); + } + + public UnaryCallable + listPublicBlueprintsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPublicBlueprintsPagedCallable()"); + } + + public UnaryCallable + listPublicBlueprintsCallable() { + throw new UnsupportedOperationException("Not implemented: listPublicBlueprintsCallable()"); + } + + public UnaryCallable getPublicBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: getPublicBlueprintCallable()"); + } + + public UnaryCallable createDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: createDeploymentCallable()"); + } + + public UnaryCallable updateDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateDeploymentCallable()"); + } + + public UnaryCallable getDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getDeploymentCallable()"); + } + + public UnaryCallable removeDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: removeDeploymentCallable()"); + } + + public UnaryCallable + listDeploymentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentsPagedCallable()"); + } + + public UnaryCallable listDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentsCallable()"); + } + + public UnaryCallable + listDeploymentRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDeploymentRevisionsPagedCallable()"); + } + + public UnaryCallable + listDeploymentRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentRevisionsCallable()"); + } + + public UnaryCallable + discardDeploymentChangesCallable() { + throw new UnsupportedOperationException("Not implemented: discardDeploymentChangesCallable()"); + } + + public UnaryCallable applyDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: applyDeploymentCallable()"); + } + + public UnaryCallable + computeDeploymentStatusCallable() { + throw new UnsupportedOperationException("Not implemented: computeDeploymentStatusCallable()"); + } + + public UnaryCallable rollbackDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: rollbackDeploymentCallable()"); + } + + public UnaryCallable + getHydratedDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getHydratedDeploymentCallable()"); + } + + public UnaryCallable + listHydratedDeploymentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listHydratedDeploymentsPagedCallable()"); + } + + public UnaryCallable + listHydratedDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listHydratedDeploymentsCallable()"); + } + + public UnaryCallable + updateHydratedDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateHydratedDeploymentCallable()"); + } + + public UnaryCallable + applyHydratedDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: applyHydratedDeploymentCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java new file mode 100644 index 000000000000..401c45a51adc --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java @@ -0,0 +1,2321 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.stub; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest; +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 TelcoAutomationStub}. + * + *

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

    + *
  • The default service address (telcoautomation.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 getOrchestrationCluster 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
+ * TelcoAutomationStubSettings.Builder telcoAutomationSettingsBuilder =
+ *     TelcoAutomationStubSettings.newBuilder();
+ * telcoAutomationSettingsBuilder
+ *     .getOrchestrationClusterSettings()
+ *     .setRetrySettings(
+ *         telcoAutomationSettingsBuilder
+ *             .getOrchestrationClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TelcoAutomationStubSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TelcoAutomationStubSettings 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< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings; + private final UnaryCallSettings + getOrchestrationClusterSettings; + private final UnaryCallSettings + createOrchestrationClusterSettings; + private final OperationCallSettings< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings; + private final UnaryCallSettings + deleteOrchestrationClusterSettings; + private final OperationCallSettings + deleteOrchestrationClusterOperationSettings; + private final PagedCallSettings< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings; + private final UnaryCallSettings getEdgeSlmSettings; + private final UnaryCallSettings createEdgeSlmSettings; + private final OperationCallSettings + createEdgeSlmOperationSettings; + private final UnaryCallSettings deleteEdgeSlmSettings; + private final OperationCallSettings + deleteEdgeSlmOperationSettings; + private final UnaryCallSettings createBlueprintSettings; + private final UnaryCallSettings updateBlueprintSettings; + private final UnaryCallSettings getBlueprintSettings; + private final UnaryCallSettings deleteBlueprintSettings; + private final PagedCallSettings< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings; + private final UnaryCallSettings approveBlueprintSettings; + private final UnaryCallSettings proposeBlueprintSettings; + private final UnaryCallSettings rejectBlueprintSettings; + private final PagedCallSettings< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings; + private final PagedCallSettings< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings; + private final PagedCallSettings< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings; + private final UnaryCallSettings + discardBlueprintChangesSettings; + private final PagedCallSettings< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings; + private final UnaryCallSettings + getPublicBlueprintSettings; + private final UnaryCallSettings createDeploymentSettings; + private final UnaryCallSettings updateDeploymentSettings; + private final UnaryCallSettings getDeploymentSettings; + private final UnaryCallSettings removeDeploymentSettings; + private final PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final PagedCallSettings< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings; + private final UnaryCallSettings + discardDeploymentChangesSettings; + private final UnaryCallSettings applyDeploymentSettings; + private final UnaryCallSettings + computeDeploymentStatusSettings; + private final UnaryCallSettings rollbackDeploymentSettings; + private final UnaryCallSettings + getHydratedDeploymentSettings; + private final PagedCallSettings< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings; + private final UnaryCallSettings + updateHydratedDeploymentSettings; + private final UnaryCallSettings + applyHydratedDeploymentSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> + LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOrchestrationClustersRequest injectToken( + ListOrchestrationClustersRequest payload, String token) { + return ListOrchestrationClustersRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListOrchestrationClustersRequest injectPageSize( + ListOrchestrationClustersRequest payload, int pageSize) { + return ListOrchestrationClustersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListOrchestrationClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOrchestrationClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListOrchestrationClustersResponse payload) { + return payload.getOrchestrationClustersList() == null + ? ImmutableList.of() + : payload.getOrchestrationClustersList(); + } + }; + + private static final PagedListDescriptor + LIST_EDGE_SLMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEdgeSlmsRequest injectToken(ListEdgeSlmsRequest payload, String token) { + return ListEdgeSlmsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEdgeSlmsRequest injectPageSize(ListEdgeSlmsRequest payload, int pageSize) { + return ListEdgeSlmsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEdgeSlmsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEdgeSlmsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEdgeSlmsResponse payload) { + return payload.getEdgeSlmsList() == null + ? ImmutableList.of() + : payload.getEdgeSlmsList(); + } + }; + + private static final PagedListDescriptor + LIST_BLUEPRINTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBlueprintsRequest injectToken(ListBlueprintsRequest payload, String token) { + return ListBlueprintsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBlueprintsRequest injectPageSize( + ListBlueprintsRequest payload, int pageSize) { + return ListBlueprintsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBlueprintsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBlueprintsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBlueprintsResponse payload) { + return payload.getBlueprintsList() == null + ? ImmutableList.of() + : payload.getBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse, Blueprint> + LIST_BLUEPRINT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse, Blueprint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBlueprintRevisionsRequest injectToken( + ListBlueprintRevisionsRequest payload, String token) { + return ListBlueprintRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBlueprintRevisionsRequest injectPageSize( + ListBlueprintRevisionsRequest payload, int pageSize) { + return ListBlueprintRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListBlueprintRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBlueprintRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBlueprintRevisionsResponse payload) { + return payload.getBlueprintsList() == null + ? ImmutableList.of() + : payload.getBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> + SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchBlueprintRevisionsRequest injectToken( + SearchBlueprintRevisionsRequest payload, String token) { + return SearchBlueprintRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchBlueprintRevisionsRequest injectPageSize( + SearchBlueprintRevisionsRequest payload, int pageSize) { + return SearchBlueprintRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchBlueprintRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchBlueprintRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchBlueprintRevisionsResponse payload) { + return payload.getBlueprintsList() == null + ? ImmutableList.of() + : payload.getBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> + SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchDeploymentRevisionsRequest injectToken( + SearchDeploymentRevisionsRequest payload, String token) { + return SearchDeploymentRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchDeploymentRevisionsRequest injectPageSize( + SearchDeploymentRevisionsRequest payload, int pageSize) { + return SearchDeploymentRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchDeploymentRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchDeploymentRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchDeploymentRevisionsResponse payload) { + return payload.getDeploymentsList() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse, PublicBlueprint> + LIST_PUBLIC_BLUEPRINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse, PublicBlueprint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPublicBlueprintsRequest injectToken( + ListPublicBlueprintsRequest payload, String token) { + return ListPublicBlueprintsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPublicBlueprintsRequest injectPageSize( + ListPublicBlueprintsRequest payload, int pageSize) { + return ListPublicBlueprintsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPublicBlueprintsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPublicBlueprintsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListPublicBlueprintsResponse payload) { + return payload.getPublicBlueprintsList() == null + ? ImmutableList.of() + : payload.getPublicBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + ListDeploymentsRequest, ListDeploymentsResponse, Deployment> + LIST_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeploymentsRequest injectToken( + ListDeploymentsRequest payload, String token) { + return ListDeploymentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeploymentsRequest injectPageSize( + ListDeploymentsRequest payload, int pageSize) { + return ListDeploymentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDeploymentsResponse payload) { + return payload.getDeploymentsList() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse, Deployment> + LIST_DEPLOYMENT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse, Deployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeploymentRevisionsRequest injectToken( + ListDeploymentRevisionsRequest payload, String token) { + return ListDeploymentRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeploymentRevisionsRequest injectPageSize( + ListDeploymentRevisionsRequest payload, int pageSize) { + return ListDeploymentRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDeploymentRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeploymentRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDeploymentRevisionsResponse payload) { + return payload.getDeploymentsList() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListHydratedDeploymentsRequest injectToken( + ListHydratedDeploymentsRequest payload, String token) { + return ListHydratedDeploymentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListHydratedDeploymentsRequest injectPageSize( + ListHydratedDeploymentsRequest payload, int pageSize) { + return ListHydratedDeploymentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListHydratedDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListHydratedDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListHydratedDeploymentsResponse payload) { + return payload.getHydratedDeploymentsList() == null + ? ImmutableList.of() + : payload.getHydratedDeploymentsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListOrchestrationClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + pageContext = + PageContext.create( + callable, LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_DESC, request, context); + return ListOrchestrationClustersPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + LIST_EDGE_SLMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEdgeSlmsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EDGE_SLMS_PAGE_STR_DESC, request, context); + return ListEdgeSlmsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + LIST_BLUEPRINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBlueprintsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BLUEPRINTS_PAGE_STR_DESC, request, context); + return ListBlueprintsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + LIST_BLUEPRINT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListBlueprintRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_BLUEPRINT_REVISIONS_PAGE_STR_DESC, request, context); + return ListBlueprintRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchBlueprintRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> + pageContext = + PageContext.create( + callable, SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_DESC, request, context); + return SearchBlueprintRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchDeploymentRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment> + pageContext = + PageContext.create( + callable, SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_DESC, request, context); + return SearchDeploymentRevisionsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + LIST_PUBLIC_BLUEPRINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPublicBlueprintsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse, PublicBlueprint> + pageContext = + PageContext.create( + callable, LIST_PUBLIC_BLUEPRINTS_PAGE_STR_DESC, request, context); + return ListPublicBlueprintsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + LIST_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + LIST_DEPLOYMENT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDeploymentRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse, Deployment> + pageContext = + PageContext.create( + callable, LIST_DEPLOYMENT_REVISIONS_PAGE_STR_DESC, request, context); + return ListDeploymentRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListHydratedDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment> + pageContext = + PageContext.create( + callable, LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListHydratedDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listOrchestrationClusters. */ + public PagedCallSettings< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return listOrchestrationClustersSettings; + } + + /** Returns the object with the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings + getOrchestrationClusterSettings() { + return getOrchestrationClusterSettings; + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings + createOrchestrationClusterSettings() { + return createOrchestrationClusterSettings; + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public OperationCallSettings< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return createOrchestrationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings + deleteOrchestrationClusterSettings() { + return deleteOrchestrationClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public OperationCallSettings + deleteOrchestrationClusterOperationSettings() { + return deleteOrchestrationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to listEdgeSlms. */ + public PagedCallSettings + listEdgeSlmsSettings() { + return listEdgeSlmsSettings; + } + + /** Returns the object with the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings getEdgeSlmSettings() { + return getEdgeSlmSettings; + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings createEdgeSlmSettings() { + return createEdgeSlmSettings; + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public OperationCallSettings + createEdgeSlmOperationSettings() { + return createEdgeSlmOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings deleteEdgeSlmSettings() { + return deleteEdgeSlmSettings; + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public OperationCallSettings + deleteEdgeSlmOperationSettings() { + return deleteEdgeSlmOperationSettings; + } + + /** Returns the object with the settings used for calls to createBlueprint. */ + public UnaryCallSettings createBlueprintSettings() { + return createBlueprintSettings; + } + + /** Returns the object with the settings used for calls to updateBlueprint. */ + public UnaryCallSettings updateBlueprintSettings() { + return updateBlueprintSettings; + } + + /** Returns the object with the settings used for calls to getBlueprint. */ + public UnaryCallSettings getBlueprintSettings() { + return getBlueprintSettings; + } + + /** Returns the object with the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings deleteBlueprintSettings() { + return deleteBlueprintSettings; + } + + /** Returns the object with the settings used for calls to listBlueprints. */ + public PagedCallSettings< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return listBlueprintsSettings; + } + + /** Returns the object with the settings used for calls to approveBlueprint. */ + public UnaryCallSettings approveBlueprintSettings() { + return approveBlueprintSettings; + } + + /** Returns the object with the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings proposeBlueprintSettings() { + return proposeBlueprintSettings; + } + + /** Returns the object with the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings rejectBlueprintSettings() { + return rejectBlueprintSettings; + } + + /** Returns the object with the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return listBlueprintRevisionsSettings; + } + + /** Returns the object with the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return searchBlueprintRevisionsSettings; + } + + /** Returns the object with the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return searchDeploymentRevisionsSettings; + } + + /** Returns the object with the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings + discardBlueprintChangesSettings() { + return discardBlueprintChangesSettings; + } + + /** Returns the object with the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return listPublicBlueprintsSettings; + } + + /** Returns the object with the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings + getPublicBlueprintSettings() { + return getPublicBlueprintSettings; + } + + /** Returns the object with the settings used for calls to createDeployment. */ + public UnaryCallSettings createDeploymentSettings() { + return createDeploymentSettings; + } + + /** Returns the object with the settings used for calls to updateDeployment. */ + public UnaryCallSettings updateDeploymentSettings() { + return updateDeploymentSettings; + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return getDeploymentSettings; + } + + /** Returns the object with the settings used for calls to removeDeployment. */ + public UnaryCallSettings removeDeploymentSettings() { + return removeDeploymentSettings; + } + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return listDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return listDeploymentRevisionsSettings; + } + + /** Returns the object with the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings + discardDeploymentChangesSettings() { + return discardDeploymentChangesSettings; + } + + /** Returns the object with the settings used for calls to applyDeployment. */ + public UnaryCallSettings applyDeploymentSettings() { + return applyDeploymentSettings; + } + + /** Returns the object with the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings + computeDeploymentStatusSettings() { + return computeDeploymentStatusSettings; + } + + /** Returns the object with the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings rollbackDeploymentSettings() { + return rollbackDeploymentSettings; + } + + /** Returns the object with the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings + getHydratedDeploymentSettings() { + return getHydratedDeploymentSettings; + } + + /** Returns the object with the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return listHydratedDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings + updateHydratedDeploymentSettings() { + return updateHydratedDeploymentSettings; + } + + /** Returns the object with the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings + applyHydratedDeploymentSettings() { + return applyHydratedDeploymentSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public TelcoAutomationStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTelcoAutomationStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTelcoAutomationStub.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 "telcoautomation.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "telcoautomation.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 gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TelcoAutomationStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TelcoAutomationStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TelcoAutomationStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TelcoAutomationStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listOrchestrationClustersSettings = settingsBuilder.listOrchestrationClustersSettings().build(); + getOrchestrationClusterSettings = settingsBuilder.getOrchestrationClusterSettings().build(); + createOrchestrationClusterSettings = + settingsBuilder.createOrchestrationClusterSettings().build(); + createOrchestrationClusterOperationSettings = + settingsBuilder.createOrchestrationClusterOperationSettings().build(); + deleteOrchestrationClusterSettings = + settingsBuilder.deleteOrchestrationClusterSettings().build(); + deleteOrchestrationClusterOperationSettings = + settingsBuilder.deleteOrchestrationClusterOperationSettings().build(); + listEdgeSlmsSettings = settingsBuilder.listEdgeSlmsSettings().build(); + getEdgeSlmSettings = settingsBuilder.getEdgeSlmSettings().build(); + createEdgeSlmSettings = settingsBuilder.createEdgeSlmSettings().build(); + createEdgeSlmOperationSettings = settingsBuilder.createEdgeSlmOperationSettings().build(); + deleteEdgeSlmSettings = settingsBuilder.deleteEdgeSlmSettings().build(); + deleteEdgeSlmOperationSettings = settingsBuilder.deleteEdgeSlmOperationSettings().build(); + createBlueprintSettings = settingsBuilder.createBlueprintSettings().build(); + updateBlueprintSettings = settingsBuilder.updateBlueprintSettings().build(); + getBlueprintSettings = settingsBuilder.getBlueprintSettings().build(); + deleteBlueprintSettings = settingsBuilder.deleteBlueprintSettings().build(); + listBlueprintsSettings = settingsBuilder.listBlueprintsSettings().build(); + approveBlueprintSettings = settingsBuilder.approveBlueprintSettings().build(); + proposeBlueprintSettings = settingsBuilder.proposeBlueprintSettings().build(); + rejectBlueprintSettings = settingsBuilder.rejectBlueprintSettings().build(); + listBlueprintRevisionsSettings = settingsBuilder.listBlueprintRevisionsSettings().build(); + searchBlueprintRevisionsSettings = settingsBuilder.searchBlueprintRevisionsSettings().build(); + searchDeploymentRevisionsSettings = settingsBuilder.searchDeploymentRevisionsSettings().build(); + discardBlueprintChangesSettings = settingsBuilder.discardBlueprintChangesSettings().build(); + listPublicBlueprintsSettings = settingsBuilder.listPublicBlueprintsSettings().build(); + getPublicBlueprintSettings = settingsBuilder.getPublicBlueprintSettings().build(); + createDeploymentSettings = settingsBuilder.createDeploymentSettings().build(); + updateDeploymentSettings = settingsBuilder.updateDeploymentSettings().build(); + getDeploymentSettings = settingsBuilder.getDeploymentSettings().build(); + removeDeploymentSettings = settingsBuilder.removeDeploymentSettings().build(); + listDeploymentsSettings = settingsBuilder.listDeploymentsSettings().build(); + listDeploymentRevisionsSettings = settingsBuilder.listDeploymentRevisionsSettings().build(); + discardDeploymentChangesSettings = settingsBuilder.discardDeploymentChangesSettings().build(); + applyDeploymentSettings = settingsBuilder.applyDeploymentSettings().build(); + computeDeploymentStatusSettings = settingsBuilder.computeDeploymentStatusSettings().build(); + rollbackDeploymentSettings = settingsBuilder.rollbackDeploymentSettings().build(); + getHydratedDeploymentSettings = settingsBuilder.getHydratedDeploymentSettings().build(); + listHydratedDeploymentsSettings = settingsBuilder.listHydratedDeploymentsSettings().build(); + updateHydratedDeploymentSettings = settingsBuilder.updateHydratedDeploymentSettings().build(); + applyHydratedDeploymentSettings = settingsBuilder.applyHydratedDeploymentSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for TelcoAutomationStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings; + private final UnaryCallSettings.Builder + getOrchestrationClusterSettings; + private final UnaryCallSettings.Builder + createOrchestrationClusterSettings; + private final OperationCallSettings.Builder< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteOrchestrationClusterSettings; + private final OperationCallSettings.Builder< + DeleteOrchestrationClusterRequest, Empty, OperationMetadata> + deleteOrchestrationClusterOperationSettings; + private final PagedCallSettings.Builder< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings; + private final UnaryCallSettings.Builder getEdgeSlmSettings; + private final UnaryCallSettings.Builder createEdgeSlmSettings; + private final OperationCallSettings.Builder + createEdgeSlmOperationSettings; + private final UnaryCallSettings.Builder deleteEdgeSlmSettings; + private final OperationCallSettings.Builder + deleteEdgeSlmOperationSettings; + private final UnaryCallSettings.Builder + createBlueprintSettings; + private final UnaryCallSettings.Builder + updateBlueprintSettings; + private final UnaryCallSettings.Builder getBlueprintSettings; + private final UnaryCallSettings.Builder deleteBlueprintSettings; + private final PagedCallSettings.Builder< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings; + private final UnaryCallSettings.Builder + approveBlueprintSettings; + private final UnaryCallSettings.Builder + proposeBlueprintSettings; + private final UnaryCallSettings.Builder + rejectBlueprintSettings; + private final PagedCallSettings.Builder< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings; + private final PagedCallSettings.Builder< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings; + private final PagedCallSettings.Builder< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings; + private final UnaryCallSettings.Builder< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesSettings; + private final PagedCallSettings.Builder< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings; + private final UnaryCallSettings.Builder + getPublicBlueprintSettings; + private final UnaryCallSettings.Builder + createDeploymentSettings; + private final UnaryCallSettings.Builder + updateDeploymentSettings; + private final UnaryCallSettings.Builder getDeploymentSettings; + private final UnaryCallSettings.Builder + removeDeploymentSettings; + private final PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final PagedCallSettings.Builder< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings; + private final UnaryCallSettings.Builder< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesSettings; + private final UnaryCallSettings.Builder + applyDeploymentSettings; + private final UnaryCallSettings.Builder< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusSettings; + private final UnaryCallSettings.Builder + rollbackDeploymentSettings; + private final UnaryCallSettings.Builder + getHydratedDeploymentSettings; + private final PagedCallSettings.Builder< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings; + private final UnaryCallSettings.Builder + updateHydratedDeploymentSettings; + private final UnaryCallSettings.Builder + applyHydratedDeploymentSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_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().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listOrchestrationClustersSettings = + PagedCallSettings.newBuilder(LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_FACT); + getOrchestrationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOrchestrationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOrchestrationClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteOrchestrationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOrchestrationClusterOperationSettings = OperationCallSettings.newBuilder(); + listEdgeSlmsSettings = PagedCallSettings.newBuilder(LIST_EDGE_SLMS_PAGE_STR_FACT); + getEdgeSlmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEdgeSlmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEdgeSlmOperationSettings = OperationCallSettings.newBuilder(); + deleteEdgeSlmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteEdgeSlmOperationSettings = OperationCallSettings.newBuilder(); + createBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBlueprintsSettings = PagedCallSettings.newBuilder(LIST_BLUEPRINTS_PAGE_STR_FACT); + approveBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + proposeBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rejectBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBlueprintRevisionsSettings = + PagedCallSettings.newBuilder(LIST_BLUEPRINT_REVISIONS_PAGE_STR_FACT); + searchBlueprintRevisionsSettings = + PagedCallSettings.newBuilder(SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_FACT); + searchDeploymentRevisionsSettings = + PagedCallSettings.newBuilder(SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_FACT); + discardBlueprintChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPublicBlueprintsSettings = + PagedCallSettings.newBuilder(LIST_PUBLIC_BLUEPRINTS_PAGE_STR_FACT); + getPublicBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); + listDeploymentRevisionsSettings = + PagedCallSettings.newBuilder(LIST_DEPLOYMENT_REVISIONS_PAGE_STR_FACT); + discardDeploymentChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + applyDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + computeDeploymentStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rollbackDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getHydratedDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listHydratedDeploymentsSettings = + PagedCallSettings.newBuilder(LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_FACT); + updateHydratedDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + applyHydratedDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listOrchestrationClustersSettings, + getOrchestrationClusterSettings, + createOrchestrationClusterSettings, + deleteOrchestrationClusterSettings, + listEdgeSlmsSettings, + getEdgeSlmSettings, + createEdgeSlmSettings, + deleteEdgeSlmSettings, + createBlueprintSettings, + updateBlueprintSettings, + getBlueprintSettings, + deleteBlueprintSettings, + listBlueprintsSettings, + approveBlueprintSettings, + proposeBlueprintSettings, + rejectBlueprintSettings, + listBlueprintRevisionsSettings, + searchBlueprintRevisionsSettings, + searchDeploymentRevisionsSettings, + discardBlueprintChangesSettings, + listPublicBlueprintsSettings, + getPublicBlueprintSettings, + createDeploymentSettings, + updateDeploymentSettings, + getDeploymentSettings, + removeDeploymentSettings, + listDeploymentsSettings, + listDeploymentRevisionsSettings, + discardDeploymentChangesSettings, + applyDeploymentSettings, + computeDeploymentStatusSettings, + rollbackDeploymentSettings, + getHydratedDeploymentSettings, + listHydratedDeploymentsSettings, + updateHydratedDeploymentSettings, + applyHydratedDeploymentSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(TelcoAutomationStubSettings settings) { + super(settings); + + listOrchestrationClustersSettings = settings.listOrchestrationClustersSettings.toBuilder(); + getOrchestrationClusterSettings = settings.getOrchestrationClusterSettings.toBuilder(); + createOrchestrationClusterSettings = settings.createOrchestrationClusterSettings.toBuilder(); + createOrchestrationClusterOperationSettings = + settings.createOrchestrationClusterOperationSettings.toBuilder(); + deleteOrchestrationClusterSettings = settings.deleteOrchestrationClusterSettings.toBuilder(); + deleteOrchestrationClusterOperationSettings = + settings.deleteOrchestrationClusterOperationSettings.toBuilder(); + listEdgeSlmsSettings = settings.listEdgeSlmsSettings.toBuilder(); + getEdgeSlmSettings = settings.getEdgeSlmSettings.toBuilder(); + createEdgeSlmSettings = settings.createEdgeSlmSettings.toBuilder(); + createEdgeSlmOperationSettings = settings.createEdgeSlmOperationSettings.toBuilder(); + deleteEdgeSlmSettings = settings.deleteEdgeSlmSettings.toBuilder(); + deleteEdgeSlmOperationSettings = settings.deleteEdgeSlmOperationSettings.toBuilder(); + createBlueprintSettings = settings.createBlueprintSettings.toBuilder(); + updateBlueprintSettings = settings.updateBlueprintSettings.toBuilder(); + getBlueprintSettings = settings.getBlueprintSettings.toBuilder(); + deleteBlueprintSettings = settings.deleteBlueprintSettings.toBuilder(); + listBlueprintsSettings = settings.listBlueprintsSettings.toBuilder(); + approveBlueprintSettings = settings.approveBlueprintSettings.toBuilder(); + proposeBlueprintSettings = settings.proposeBlueprintSettings.toBuilder(); + rejectBlueprintSettings = settings.rejectBlueprintSettings.toBuilder(); + listBlueprintRevisionsSettings = settings.listBlueprintRevisionsSettings.toBuilder(); + searchBlueprintRevisionsSettings = settings.searchBlueprintRevisionsSettings.toBuilder(); + searchDeploymentRevisionsSettings = settings.searchDeploymentRevisionsSettings.toBuilder(); + discardBlueprintChangesSettings = settings.discardBlueprintChangesSettings.toBuilder(); + listPublicBlueprintsSettings = settings.listPublicBlueprintsSettings.toBuilder(); + getPublicBlueprintSettings = settings.getPublicBlueprintSettings.toBuilder(); + createDeploymentSettings = settings.createDeploymentSettings.toBuilder(); + updateDeploymentSettings = settings.updateDeploymentSettings.toBuilder(); + getDeploymentSettings = settings.getDeploymentSettings.toBuilder(); + removeDeploymentSettings = settings.removeDeploymentSettings.toBuilder(); + listDeploymentsSettings = settings.listDeploymentsSettings.toBuilder(); + listDeploymentRevisionsSettings = settings.listDeploymentRevisionsSettings.toBuilder(); + discardDeploymentChangesSettings = settings.discardDeploymentChangesSettings.toBuilder(); + applyDeploymentSettings = settings.applyDeploymentSettings.toBuilder(); + computeDeploymentStatusSettings = settings.computeDeploymentStatusSettings.toBuilder(); + rollbackDeploymentSettings = settings.rollbackDeploymentSettings.toBuilder(); + getHydratedDeploymentSettings = settings.getHydratedDeploymentSettings.toBuilder(); + listHydratedDeploymentsSettings = settings.listHydratedDeploymentsSettings.toBuilder(); + updateHydratedDeploymentSettings = settings.updateHydratedDeploymentSettings.toBuilder(); + applyHydratedDeploymentSettings = settings.applyHydratedDeploymentSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listOrchestrationClustersSettings, + getOrchestrationClusterSettings, + createOrchestrationClusterSettings, + deleteOrchestrationClusterSettings, + listEdgeSlmsSettings, + getEdgeSlmSettings, + createEdgeSlmSettings, + deleteEdgeSlmSettings, + createBlueprintSettings, + updateBlueprintSettings, + getBlueprintSettings, + deleteBlueprintSettings, + listBlueprintsSettings, + approveBlueprintSettings, + proposeBlueprintSettings, + rejectBlueprintSettings, + listBlueprintRevisionsSettings, + searchBlueprintRevisionsSettings, + searchDeploymentRevisionsSettings, + discardBlueprintChangesSettings, + listPublicBlueprintsSettings, + getPublicBlueprintSettings, + createDeploymentSettings, + updateDeploymentSettings, + getDeploymentSettings, + removeDeploymentSettings, + listDeploymentsSettings, + listDeploymentRevisionsSettings, + discardDeploymentChangesSettings, + applyDeploymentSettings, + computeDeploymentStatusSettings, + rollbackDeploymentSettings, + getHydratedDeploymentSettings, + listHydratedDeploymentsSettings, + updateHydratedDeploymentSettings, + applyHydratedDeploymentSettings, + listLocationsSettings, + getLocationSettings); + } + + 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 createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listOrchestrationClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getOrchestrationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createOrchestrationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteOrchestrationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listEdgeSlmsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getEdgeSlmSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createEdgeSlmSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteEdgeSlmSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBlueprintsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .approveBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .proposeBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .rejectBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBlueprintRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchBlueprintRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchDeploymentRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .discardBlueprintChangesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listPublicBlueprintsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getPublicBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .removeDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeploymentRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .discardDeploymentChangesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .applyDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .computeDeploymentStatusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .rollbackDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getHydratedDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listHydratedDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateHydratedDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .applyHydratedDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createOrchestrationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OrchestrationCluster.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 + .deleteOrchestrationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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())); + + builder + .createEdgeSlmOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(EdgeSlm.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 + .deleteEdgeSlmOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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 listOrchestrationClusters. */ + public PagedCallSettings.Builder< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return listOrchestrationClustersSettings; + } + + /** Returns the builder for the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings.Builder + getOrchestrationClusterSettings() { + return getOrchestrationClusterSettings; + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings.Builder + createOrchestrationClusterSettings() { + return createOrchestrationClusterSettings; + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return createOrchestrationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings.Builder + deleteOrchestrationClusterSettings() { + return deleteOrchestrationClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteOrchestrationClusterRequest, Empty, OperationMetadata> + deleteOrchestrationClusterOperationSettings() { + return deleteOrchestrationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to listEdgeSlms. */ + public PagedCallSettings.Builder< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings() { + return listEdgeSlmsSettings; + } + + /** Returns the builder for the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings.Builder getEdgeSlmSettings() { + return getEdgeSlmSettings; + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings.Builder createEdgeSlmSettings() { + return createEdgeSlmSettings; + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createEdgeSlmOperationSettings() { + return createEdgeSlmOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings.Builder deleteEdgeSlmSettings() { + return deleteEdgeSlmSettings; + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteEdgeSlmOperationSettings() { + return deleteEdgeSlmOperationSettings; + } + + /** Returns the builder for the settings used for calls to createBlueprint. */ + public UnaryCallSettings.Builder createBlueprintSettings() { + return createBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to updateBlueprint. */ + public UnaryCallSettings.Builder updateBlueprintSettings() { + return updateBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to getBlueprint. */ + public UnaryCallSettings.Builder getBlueprintSettings() { + return getBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings.Builder deleteBlueprintSettings() { + return deleteBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to listBlueprints. */ + public PagedCallSettings.Builder< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return listBlueprintsSettings; + } + + /** Returns the builder for the settings used for calls to approveBlueprint. */ + public UnaryCallSettings.Builder + approveBlueprintSettings() { + return approveBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings.Builder + proposeBlueprintSettings() { + return proposeBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings.Builder rejectBlueprintSettings() { + return rejectBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings.Builder< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return listBlueprintRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings.Builder< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return searchBlueprintRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings.Builder< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return searchDeploymentRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings.Builder< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesSettings() { + return discardBlueprintChangesSettings; + } + + /** Returns the builder for the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings.Builder< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return listPublicBlueprintsSettings; + } + + /** Returns the builder for the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings.Builder + getPublicBlueprintSettings() { + return getPublicBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to createDeployment. */ + public UnaryCallSettings.Builder + createDeploymentSettings() { + return createDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to updateDeployment. */ + public UnaryCallSettings.Builder + updateDeploymentSettings() { + return updateDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to getDeployment. */ + public UnaryCallSettings.Builder getDeploymentSettings() { + return getDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to removeDeployment. */ + public UnaryCallSettings.Builder removeDeploymentSettings() { + return removeDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to listDeployments. */ + public PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return listDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings.Builder< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return listDeploymentRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings.Builder< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesSettings() { + return discardDeploymentChangesSettings; + } + + /** Returns the builder for the settings used for calls to applyDeployment. */ + public UnaryCallSettings.Builder applyDeploymentSettings() { + return applyDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings.Builder< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusSettings() { + return computeDeploymentStatusSettings; + } + + /** Returns the builder for the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings.Builder + rollbackDeploymentSettings() { + return rollbackDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings.Builder + getHydratedDeploymentSettings() { + return getHydratedDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings.Builder< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return listHydratedDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings.Builder + updateHydratedDeploymentSettings() { + return updateHydratedDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings.Builder + applyHydratedDeploymentSettings() { + return applyHydratedDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public TelcoAutomationStubSettings build() throws IOException { + return new TelcoAutomationStubSettings(this); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java new file mode 100644 index 000000000000..f15add19b466 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java @@ -0,0 +1,6680 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.stub.TelcoAutomationStub; +import com.google.cloud.telcoautomation.v1alpha1.stub.TelcoAutomationStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: TelcoAutomation Service manages the control plane cluster a.k.a. + * Orchestration Cluster (GKE cluster with config controller) of TNA. It also exposes blueprint APIs + * which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE + * clusters) and deployment of network functions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+ *   OrchestrationClusterName name =
+ *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+ *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the TelcoAutomationClient 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 TelcoAutomationSettings 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
+ * TelcoAutomationSettings telcoAutomationSettings =
+ *     TelcoAutomationSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TelcoAutomationClient telcoAutomationClient =
+ *     TelcoAutomationClient.create(telcoAutomationSettings);
+ * }
+ * + *

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
+ * TelcoAutomationSettings telcoAutomationSettings =
+ *     TelcoAutomationSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TelcoAutomationClient telcoAutomationClient =
+ *     TelcoAutomationClient.create(telcoAutomationSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated 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
+ * TelcoAutomationSettings telcoAutomationSettings =
+ *     TelcoAutomationSettings.newHttpJsonBuilder().build();
+ * TelcoAutomationClient telcoAutomationClient =
+ *     TelcoAutomationClient.create(telcoAutomationSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class TelcoAutomationClient implements BackgroundResource { + private final TelcoAutomationSettings settings; + private final TelcoAutomationStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TelcoAutomationClient with default settings. */ + public static final TelcoAutomationClient create() throws IOException { + return create(TelcoAutomationSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TelcoAutomationClient, 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 TelcoAutomationClient create(TelcoAutomationSettings settings) + throws IOException { + return new TelcoAutomationClient(settings); + } + + /** + * Constructs an instance of TelcoAutomationClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(TelcoAutomationSettings). + */ + public static final TelcoAutomationClient create(TelcoAutomationStub stub) { + return new TelcoAutomationClient(stub); + } + + /** + * Constructs an instance of TelcoAutomationClient, 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 TelcoAutomationClient(TelcoAutomationSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TelcoAutomationStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TelcoAutomationClient(TelcoAutomationStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TelcoAutomationSettings getSettings() { + return settings; + } + + public TelcoAutomationStub 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 com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (OrchestrationCluster element :
+   *       telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListOrchestrationClustersRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( + LocationName parent) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOrchestrationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (OrchestrationCluster element :
+   *       telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListOrchestrationClustersRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrchestrationClustersPagedResponse listOrchestrationClusters(String parent) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder().setParent(parent).build(); + return listOrchestrationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListOrchestrationClustersRequest request =
+   *       ListOrchestrationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (OrchestrationCluster element :
+   *       telcoAutomationClient.listOrchestrationClusters(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 ListOrchestrationClustersPagedResponse listOrchestrationClusters( + ListOrchestrationClustersRequest request) { + return listOrchestrationClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListOrchestrationClustersRequest request =
+   *       ListOrchestrationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listOrchestrationClustersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (OrchestrationCluster element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable() { + return stub.listOrchestrationClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListOrchestrationClustersRequest request =
+   *       ListOrchestrationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListOrchestrationClustersResponse response =
+   *         telcoAutomationClient.listOrchestrationClustersCallable().call(request);
+   *     for (OrchestrationCluster element : response.getOrchestrationClustersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listOrchestrationClustersCallable() { + return stub.listOrchestrationClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrchestrationCluster getOrchestrationCluster(OrchestrationClusterName name) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOrchestrationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrchestrationCluster getOrchestrationCluster(String name) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder().setName(name).build(); + return getOrchestrationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetOrchestrationClusterRequest request =
+   *       GetOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(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 OrchestrationCluster getOrchestrationCluster( + GetOrchestrationClusterRequest request) { + return getOrchestrationClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetOrchestrationClusterRequest request =
+   *       GetOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getOrchestrationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   OrchestrationCluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getOrchestrationClusterCallable() { + return stub.getOrchestrationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build();
+   *   String orchestrationClusterId = "orchestrationClusterId75469684";
+   *   OrchestrationCluster response =
+   *       telcoAutomationClient
+   *           .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param orchestrationCluster Required. The resource being created + * @param orchestrationClusterId Required. Id of the requesting object If auto-generating Id + * server-side, remove this field and orchestration_cluster_id from the method_signature of + * Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOrchestrationClusterAsync( + LocationName parent, + OrchestrationCluster orchestrationCluster, + String orchestrationClusterId) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOrchestrationCluster(orchestrationCluster) + .setOrchestrationClusterId(orchestrationClusterId) + .build(); + return createOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build();
+   *   String orchestrationClusterId = "orchestrationClusterId75469684";
+   *   OrchestrationCluster response =
+   *       telcoAutomationClient
+   *           .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param orchestrationCluster Required. The resource being created + * @param orchestrationClusterId Required. Id of the requesting object If auto-generating Id + * server-side, remove this field and orchestration_cluster_id from the method_signature of + * Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOrchestrationClusterAsync( + String parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(parent) + .setOrchestrationCluster(orchestrationCluster) + .setOrchestrationClusterId(orchestrationClusterId) + .build(); + return createOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateOrchestrationClusterRequest request =
+   *       CreateOrchestrationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOrchestrationClusterId("orchestrationClusterId75469684")
+   *           .setOrchestrationCluster(OrchestrationCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OrchestrationCluster response =
+   *       telcoAutomationClient.createOrchestrationClusterAsync(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 + createOrchestrationClusterAsync(CreateOrchestrationClusterRequest request) { + return createOrchestrationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateOrchestrationClusterRequest request =
+   *       CreateOrchestrationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOrchestrationClusterId("orchestrationClusterId75469684")
+   *           .setOrchestrationCluster(OrchestrationCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.createOrchestrationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   OrchestrationCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return stub.createOrchestrationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateOrchestrationClusterRequest request =
+   *       CreateOrchestrationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setOrchestrationClusterId("orchestrationClusterId75469684")
+   *           .setOrchestrationCluster(OrchestrationCluster.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createOrchestrationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createOrchestrationClusterCallable() { + return stub.createOrchestrationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   telcoAutomationClient.deleteOrchestrationClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrchestrationClusterAsync( + OrchestrationClusterName name) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   telcoAutomationClient.deleteOrchestrationClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrchestrationClusterAsync( + String name) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder().setName(name).build(); + return deleteOrchestrationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteOrchestrationClusterRequest request =
+   *       DeleteOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   telcoAutomationClient.deleteOrchestrationClusterAsync(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 deleteOrchestrationClusterAsync( + DeleteOrchestrationClusterRequest request) { + return deleteOrchestrationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteOrchestrationClusterRequest request =
+   *       DeleteOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.deleteOrchestrationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOrchestrationClusterOperationCallable() { + return stub.deleteOrchestrationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single OrchestrationCluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteOrchestrationClusterRequest request =
+   *       DeleteOrchestrationClusterRequest.newBuilder()
+   *           .setName(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteOrchestrationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteOrchestrationClusterCallable() { + return stub.deleteOrchestrationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListEdgeSlmsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEdgeSlmsPagedResponse listEdgeSlms(LocationName parent) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEdgeSlms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListEdgeSlmsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEdgeSlmsPagedResponse listEdgeSlms(String parent) { + ListEdgeSlmsRequest request = ListEdgeSlmsRequest.newBuilder().setParent(parent).build(); + return listEdgeSlms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListEdgeSlmsRequest request =
+   *       ListEdgeSlmsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(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 ListEdgeSlmsPagedResponse listEdgeSlms(ListEdgeSlmsRequest request) { + return listEdgeSlmsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListEdgeSlmsRequest request =
+   *       ListEdgeSlmsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listEdgeSlmsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (EdgeSlm element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listEdgeSlmsPagedCallable() { + return stub.listEdgeSlmsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListEdgeSlmsRequest request =
+   *       ListEdgeSlmsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListEdgeSlmsResponse response = telcoAutomationClient.listEdgeSlmsCallable().call(request);
+   *     for (EdgeSlm element : response.getEdgeSlmsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listEdgeSlmsCallable() { + return stub.listEdgeSlmsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]");
+   *   EdgeSlm response = telcoAutomationClient.getEdgeSlm(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EdgeSlm getEdgeSlm(EdgeSlmName name) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEdgeSlm(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString();
+   *   EdgeSlm response = telcoAutomationClient.getEdgeSlm(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EdgeSlm getEdgeSlm(String name) { + GetEdgeSlmRequest request = GetEdgeSlmRequest.newBuilder().setName(name).build(); + return getEdgeSlm(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetEdgeSlmRequest request =
+   *       GetEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .build();
+   *   EdgeSlm response = telcoAutomationClient.getEdgeSlm(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 EdgeSlm getEdgeSlm(GetEdgeSlmRequest request) { + return getEdgeSlmCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetEdgeSlmRequest request =
+   *       GetEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .build();
+   *   ApiFuture future = telcoAutomationClient.getEdgeSlmCallable().futureCall(request);
+   *   // Do something.
+   *   EdgeSlm response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getEdgeSlmCallable() { + return stub.getEdgeSlmCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   EdgeSlm edgeSlm = EdgeSlm.newBuilder().build();
+   *   String edgeSlmId = "edgeSlmId213186994";
+   *   EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param edgeSlm Required. The resource being created + * @param edgeSlmId Required. Id of the requesting object If auto-generating Id server-side, + * remove this field and edge_slm_id from the method_signature of Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEdgeSlmAsync( + LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEdgeSlm(edgeSlm) + .setEdgeSlmId(edgeSlmId) + .build(); + return createEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   EdgeSlm edgeSlm = EdgeSlm.newBuilder().build();
+   *   String edgeSlmId = "edgeSlmId213186994";
+   *   EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get();
+   * }
+   * }
+ * + * @param parent Required. Value for parent. + * @param edgeSlm Required. The resource being created + * @param edgeSlmId Required. Id of the requesting object If auto-generating Id server-side, + * remove this field and edge_slm_id from the method_signature of Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createEdgeSlmAsync( + String parent, EdgeSlm edgeSlm, String edgeSlmId) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(parent) + .setEdgeSlm(edgeSlm) + .setEdgeSlmId(edgeSlmId) + .build(); + return createEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateEdgeSlmRequest request =
+   *       CreateEdgeSlmRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEdgeSlmId("edgeSlmId213186994")
+   *           .setEdgeSlm(EdgeSlm.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(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 createEdgeSlmAsync( + CreateEdgeSlmRequest request) { + return createEdgeSlmOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateEdgeSlmRequest request =
+   *       CreateEdgeSlmRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEdgeSlmId("edgeSlmId213186994")
+   *           .setEdgeSlm(EdgeSlm.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.createEdgeSlmOperationCallable().futureCall(request);
+   *   // Do something.
+   *   EdgeSlm response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createEdgeSlmOperationCallable() { + return stub.createEdgeSlmOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new EdgeSlm 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateEdgeSlmRequest request =
+   *       CreateEdgeSlmRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setEdgeSlmId("edgeSlmId213186994")
+   *           .setEdgeSlm(EdgeSlm.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createEdgeSlmCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createEdgeSlmCallable() { + return stub.createEdgeSlmCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]");
+   *   telcoAutomationClient.deleteEdgeSlmAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteEdgeSlmAsync(EdgeSlmName name) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString();
+   *   telcoAutomationClient.deleteEdgeSlmAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteEdgeSlmAsync(String name) { + DeleteEdgeSlmRequest request = DeleteEdgeSlmRequest.newBuilder().setName(name).build(); + return deleteEdgeSlmAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteEdgeSlmRequest request =
+   *       DeleteEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   telcoAutomationClient.deleteEdgeSlmAsync(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 deleteEdgeSlmAsync( + DeleteEdgeSlmRequest request) { + return deleteEdgeSlmOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteEdgeSlmRequest request =
+   *       DeleteEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       telcoAutomationClient.deleteEdgeSlmOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteEdgeSlmOperationCallable() { + return stub.deleteEdgeSlmOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single EdgeSlm. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteEdgeSlmRequest request =
+   *       DeleteEdgeSlmRequest.newBuilder()
+   *           .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteEdgeSlmCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteEdgeSlmCallable() { + return stub.deleteEdgeSlmCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   Blueprint blueprint = Blueprint.newBuilder().build();
+   *   String blueprintId = "blueprintId-1159505138";
+   *   Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param blueprint Required. The `Blueprint` to create. + * @param blueprintId Optional. The name of the blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint createBlueprint( + OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBlueprint(blueprint) + .setBlueprintId(blueprintId) + .build(); + return createBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   Blueprint blueprint = Blueprint.newBuilder().build();
+   *   String blueprintId = "blueprintId-1159505138";
+   *   Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param blueprint Required. The `Blueprint` to create. + * @param blueprintId Optional. The name of the blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint createBlueprint(String parent, Blueprint blueprint, String blueprintId) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent(parent) + .setBlueprint(blueprint) + .setBlueprintId(blueprintId) + .build(); + return createBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateBlueprintRequest request =
+   *       CreateBlueprintRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setBlueprintId("blueprintId-1159505138")
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.createBlueprint(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 Blueprint createBlueprint(CreateBlueprintRequest request) { + return createBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateBlueprintRequest request =
+   *       CreateBlueprintRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setBlueprintId("blueprintId-1159505138")
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBlueprintCallable() { + return stub.createBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   Blueprint blueprint = Blueprint.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Blueprint response = telcoAutomationClient.updateBlueprint(blueprint, updateMask);
+   * }
+   * }
+ * + * @param blueprint Required. The `blueprint` to update. + * @param updateMask Required. Update mask is used to specify the fields to be overwritten in the + * `blueprint` resource by the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint updateBlueprint(Blueprint blueprint, FieldMask updateMask) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(blueprint) + .setUpdateMask(updateMask) + .build(); + return updateBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateBlueprintRequest request =
+   *       UpdateBlueprintRequest.newBuilder()
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.updateBlueprint(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 Blueprint updateBlueprint(UpdateBlueprintRequest request) { + return updateBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateBlueprintRequest request =
+   *       UpdateBlueprintRequest.newBuilder()
+   *           .setBlueprint(Blueprint.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.updateBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBlueprintCallable() { + return stub.updateBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.getBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint. Case 1: If the name provided in the request is + * {blueprint_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {blueprint}, then the current + * state of the blueprint is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint getBlueprint(BlueprintName name) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.getBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint. Case 1: If the name provided in the request is + * {blueprint_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {blueprint}, then the current + * state of the blueprint is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint getBlueprint(String name) { + GetBlueprintRequest request = GetBlueprintRequest.newBuilder().setName(name).build(); + return getBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetBlueprintRequest request =
+   *       GetBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setView(BlueprintView.forNumber(0))
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.getBlueprint(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 Blueprint getBlueprint(GetBlueprintRequest request) { + return getBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetBlueprintRequest request =
+   *       GetBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setView(BlueprintView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBlueprintCallable() { + return stub.getBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   telcoAutomationClient.deleteBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of blueprint to delete. Blueprint name should be in the format + * {blueprint_id}, if {blueprint_id}{@literal @}{revision_id} is passed then the API throws + * invalid argument. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBlueprint(BlueprintName name) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   telcoAutomationClient.deleteBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of blueprint to delete. Blueprint name should be in the format + * {blueprint_id}, if {blueprint_id}{@literal @}{revision_id} is passed then the API throws + * invalid argument. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBlueprint(String name) { + DeleteBlueprintRequest request = DeleteBlueprintRequest.newBuilder().setName(name).build(); + deleteBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteBlueprintRequest request =
+   *       DeleteBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   telcoAutomationClient.deleteBlueprint(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 void deleteBlueprint(DeleteBlueprintRequest request) { + deleteBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteBlueprintRequest request =
+   *       DeleteBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = telcoAutomationClient.deleteBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBlueprintCallable() { + return stub.deleteBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified revision of the blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteBlueprintRevisionRequest request =
+   *       DeleteBlueprintRevisionRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.deleteBlueprintRevision(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 Blueprint deleteBlueprintRevision(DeleteBlueprintRevisionRequest request) { + return deleteBlueprintRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified revision of the blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteBlueprintRevisionRequest request =
+   *       DeleteBlueprintRevisionRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteBlueprintRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteBlueprintRevisionCallable() { + return stub.deleteBlueprintRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintsPagedResponse listBlueprints(OrchestrationClusterName parent) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintsPagedResponse listBlueprints(String parent) { + ListBlueprintsRequest request = ListBlueprintsRequest.newBuilder().setParent(parent).build(); + return listBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintsRequest request =
+   *       ListBlueprintsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprints(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 ListBlueprintsPagedResponse listBlueprints(ListBlueprintsRequest request) { + return listBlueprintsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintsRequest request =
+   *       ListBlueprintsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listBlueprintsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Blueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintsPagedCallable() { + return stub.listBlueprintsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintsRequest request =
+   *       ListBlueprintsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBlueprintsResponse response =
+   *         telcoAutomationClient.listBlueprintsCallable().call(request);
+   *     for (Blueprint element : response.getBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintsCallable() { + return stub.listBlueprintsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.approveBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to approve. The blueprint must be in Proposed + * state. A new revision is committed on approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint approveBlueprint(BlueprintName name) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return approveBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.approveBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to approve. The blueprint must be in Proposed + * state. A new revision is committed on approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint approveBlueprint(String name) { + ApproveBlueprintRequest request = ApproveBlueprintRequest.newBuilder().setName(name).build(); + return approveBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApproveBlueprintRequest request =
+   *       ApproveBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.approveBlueprint(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 Blueprint approveBlueprint(ApproveBlueprintRequest request) { + return approveBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApproveBlueprintRequest request =
+   *       ApproveBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.approveBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable approveBlueprintCallable() { + return stub.approveBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.proposeBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being proposed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint proposeBlueprint(BlueprintName name) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return proposeBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.proposeBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being proposed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint proposeBlueprint(String name) { + ProposeBlueprintRequest request = ProposeBlueprintRequest.newBuilder().setName(name).build(); + return proposeBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ProposeBlueprintRequest request =
+   *       ProposeBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.proposeBlueprint(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 Blueprint proposeBlueprint(ProposeBlueprintRequest request) { + return proposeBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ProposeBlueprintRequest request =
+   *       ProposeBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.proposeBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable proposeBlueprintCallable() { + return stub.proposeBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   Blueprint response = telcoAutomationClient.rejectBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being rejected. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint rejectBlueprint(BlueprintName name) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return rejectBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   Blueprint response = telcoAutomationClient.rejectBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint being rejected. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint rejectBlueprint(String name) { + RejectBlueprintRequest request = RejectBlueprintRequest.newBuilder().setName(name).build(); + return rejectBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RejectBlueprintRequest request =
+   *       RejectBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   Blueprint response = telcoAutomationClient.rejectBlueprint(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 Blueprint rejectBlueprint(RejectBlueprintRequest request) { + return rejectBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RejectBlueprintRequest request =
+   *       RejectBlueprintRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.rejectBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   Blueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable rejectBlueprintCallable() { + return stub.rejectBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(BlueprintName name) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(String name) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder().setName(name).build(); + return listBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintRevisionsRequest request =
+   *       ListBlueprintRevisionsRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(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 ListBlueprintRevisionsPagedResponse listBlueprintRevisions( + ListBlueprintRevisionsRequest request) { + return listBlueprintRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintRevisionsRequest request =
+   *       ListBlueprintRevisionsRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listBlueprintRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Blueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintRevisionsPagedCallable() { + return stub.listBlueprintRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListBlueprintRevisionsRequest request =
+   *       ListBlueprintRevisionsRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBlueprintRevisionsResponse response =
+   *         telcoAutomationClient.listBlueprintRevisionsCallable().call(request);
+   *     for (Blueprint element : response.getBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBlueprintRevisionsCallable() { + return stub.listBlueprintRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   String query = "query107944136";
+   *   for (Blueprint element :
+   *       telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all blueprints. 2. + * "latest=true" : Lists latest revisions across all blueprints. 3. "name=<name>" : + * Lists all revisions of blueprint with name <name>. 4. "name=<name> + * latest=true": Lists latest revision of blueprint with name <name> + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + OrchestrationClusterName parent, String query) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   String query = "query107944136";
+   *   for (Blueprint element :
+   *       telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all blueprints. 2. + * "latest=true" : Lists latest revisions across all blueprints. 3. "name=<name>" : + * Lists all revisions of blueprint with name <name>. 4. "name=<name> + * latest=true": Lists latest revision of blueprint with name <name> + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + String parent, String query) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchBlueprintRevisionsRequest request =
+   *       SearchBlueprintRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Blueprint element :
+   *       telcoAutomationClient.searchBlueprintRevisions(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 SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + SearchBlueprintRevisionsRequest request) { + return searchBlueprintRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchBlueprintRevisionsRequest request =
+   *       SearchBlueprintRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.searchBlueprintRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Blueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchBlueprintRevisionsPagedCallable() { + return stub.searchBlueprintRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchBlueprintRevisionsRequest request =
+   *       SearchBlueprintRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchBlueprintRevisionsResponse response =
+   *         telcoAutomationClient.searchBlueprintRevisionsCallable().call(request);
+   *     for (Blueprint element : response.getBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchBlueprintRevisionsCallable() { + return stub.searchBlueprintRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   String query = "query107944136";
+   *   for (Deployment element :
+   *       telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all deployments. + * 2. "latest=true" : Lists latest revisions across all deployments. 3. "name=<name>" : + * Lists all revisions of deployment with name <name>. 4. "name=<name> + * latest=true": Lists latest revision of deployment with name <name> + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + OrchestrationClusterName parent, String query) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   String query = "query107944136";
+   *   for (Deployment element :
+   *       telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all deployments. + * 2. "latest=true" : Lists latest revisions across all deployments. 3. "name=<name>" : + * Lists all revisions of deployment with name <name>. 4. "name=<name> + * latest=true": Lists latest revision of deployment with name <name> + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + String parent, String query) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchDeploymentRevisionsRequest request =
+   *       SearchDeploymentRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element :
+   *       telcoAutomationClient.searchDeploymentRevisions(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 SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + SearchDeploymentRevisionsRequest request) { + return searchDeploymentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchDeploymentRevisionsRequest request =
+   *       SearchDeploymentRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.searchDeploymentRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Deployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable() { + return stub.searchDeploymentRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   SearchDeploymentRevisionsRequest request =
+   *       SearchDeploymentRevisionsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchDeploymentRevisionsResponse response =
+   *         telcoAutomationClient.searchDeploymentRevisionsCallable().call(request);
+   *     for (Deployment element : response.getDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchDeploymentRevisionsCallable() { + return stub.searchDeploymentRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   BlueprintName name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]");
+   *   DiscardBlueprintChangesResponse response =
+   *       telcoAutomationClient.discardBlueprintChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardBlueprintChangesResponse discardBlueprintChanges(BlueprintName name) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return discardBlueprintChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *           .toString();
+   *   DiscardBlueprintChangesResponse response =
+   *       telcoAutomationClient.discardBlueprintChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the blueprint of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardBlueprintChangesResponse discardBlueprintChanges(String name) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder().setName(name).build(); + return discardBlueprintChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardBlueprintChangesRequest request =
+   *       DiscardBlueprintChangesRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   DiscardBlueprintChangesResponse response =
+   *       telcoAutomationClient.discardBlueprintChanges(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 DiscardBlueprintChangesResponse discardBlueprintChanges( + DiscardBlueprintChangesRequest request) { + return discardBlueprintChangesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardBlueprintChangesRequest request =
+   *       DiscardBlueprintChangesRequest.newBuilder()
+   *           .setName(
+   *               BlueprintName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.discardBlueprintChangesCallable().futureCall(request);
+   *   // Do something.
+   *   DiscardBlueprintChangesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + discardBlueprintChangesCallable() { + return stub.discardBlueprintChangesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PublicBlueprint element :
+   *       telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value of public blueprint. Format should be - + * "projects/{project_id}/locations/{location_name}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublicBlueprintsPagedResponse listPublicBlueprints(LocationName parent) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPublicBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PublicBlueprint element :
+   *       telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value of public blueprint. Format should be - + * "projects/{project_id}/locations/{location_name}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublicBlueprintsPagedResponse listPublicBlueprints(String parent) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder().setParent(parent).build(); + return listPublicBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListPublicBlueprintsRequest request =
+   *       ListPublicBlueprintsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (PublicBlueprint element :
+   *       telcoAutomationClient.listPublicBlueprints(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 ListPublicBlueprintsPagedResponse listPublicBlueprints( + ListPublicBlueprintsRequest request) { + return listPublicBlueprintsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListPublicBlueprintsRequest request =
+   *       ListPublicBlueprintsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listPublicBlueprintsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PublicBlueprint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPublicBlueprintsPagedCallable() { + return stub.listPublicBlueprintsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListPublicBlueprintsRequest request =
+   *       ListPublicBlueprintsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListPublicBlueprintsResponse response =
+   *         telcoAutomationClient.listPublicBlueprintsCallable().call(request);
+   *     for (PublicBlueprint element : response.getPublicBlueprintsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPublicBlueprintsCallable() { + return stub.listPublicBlueprintsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   PublicBlueprintName name =
+   *       PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]");
+   *   PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the public blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicBlueprint getPublicBlueprint(PublicBlueprintName name) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPublicBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString();
+   *   PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name);
+   * }
+   * }
+ * + * @param name Required. The name of the public blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicBlueprint getPublicBlueprint(String name) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder().setName(name).build(); + return getPublicBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetPublicBlueprintRequest request =
+   *       GetPublicBlueprintRequest.newBuilder()
+   *           .setName(
+   *               PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString())
+   *           .build();
+   *   PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(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 PublicBlueprint getPublicBlueprint(GetPublicBlueprintRequest request) { + return getPublicBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetPublicBlueprintRequest request =
+   *       GetPublicBlueprintRequest.newBuilder()
+   *           .setName(
+   *               PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getPublicBlueprintCallable().futureCall(request);
+   *   // Do something.
+   *   PublicBlueprint response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPublicBlueprintCallable() { + return stub.getPublicBlueprintCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   Deployment deployment = Deployment.newBuilder().build();
+   *   String deploymentId = "deploymentId-136894784";
+   *   Deployment response =
+   *       telcoAutomationClient.createDeployment(parent, deployment, deploymentId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param deployment Required. The `Deployment` to create. + * @param deploymentId Optional. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + OrchestrationClusterName parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   Deployment deployment = Deployment.newBuilder().build();
+   *   String deploymentId = "deploymentId-136894784";
+   *   Deployment response =
+   *       telcoAutomationClient.createDeployment(parent, deployment, deploymentId);
+   * }
+   * }
+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param deployment Required. The `Deployment` to create. + * @param deploymentId Optional. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + String parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateDeploymentRequest request =
+   *       CreateDeploymentRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setDeploymentId("deploymentId-136894784")
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.createDeployment(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 Deployment createDeployment(CreateDeploymentRequest request) { + return createDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   CreateDeploymentRequest request =
+   *       CreateDeploymentRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setDeploymentId("deploymentId-136894784")
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.createDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDeploymentCallable() { + return stub.createDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   Deployment deployment = Deployment.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Deployment response = telcoAutomationClient.updateDeployment(deployment, updateMask);
+   * }
+   * }
+ * + * @param deployment Required. The `deployment` to update. + * @param updateMask Required. Update mask is used to specify the fields to be overwritten in the + * `deployment` resource by the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment updateDeployment(Deployment deployment, FieldMask updateMask) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(deployment) + .setUpdateMask(updateMask) + .build(); + return updateDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateDeploymentRequest request =
+   *       UpdateDeploymentRequest.newBuilder()
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.updateDeployment(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 Deployment updateDeployment(UpdateDeploymentRequest request) { + return updateDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateDeploymentRequest request =
+   *       UpdateDeploymentRequest.newBuilder()
+   *           .setDeployment(Deployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.updateDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDeploymentCallable() { + return stub.updateDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   Deployment response = telcoAutomationClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment. Case 1: If the name provided in the request + * is {deployment_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {deployment}, then the current + * state of the deployment is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(DeploymentName name) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   Deployment response = telcoAutomationClient.getDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment. Case 1: If the name provided in the request + * is {deployment_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {deployment}, then the current + * state of the deployment is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(String name) { + GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setView(DeploymentView.forNumber(0))
+   *           .build();
+   *   Deployment response = telcoAutomationClient.getDeployment(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 Deployment getDeployment(GetDeploymentRequest request) { + return getDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetDeploymentRequest request =
+   *       GetDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setView(DeploymentView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDeploymentCallable() { + return stub.getDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   telcoAutomationClient.deleteDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of deployment to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeployment(DeploymentName name) { + DeleteDeploymentRequest request = + DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   telcoAutomationClient.deleteDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of deployment to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeployment(String name) { + DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name).build(); + deleteDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteDeploymentRequest request =
+   *       DeleteDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   telcoAutomationClient.deleteDeployment(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 void deleteDeployment(DeleteDeploymentRequest request) { + deleteDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a deployment and all its revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteDeploymentRequest request =
+   *       DeleteDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDeploymentCallable() { + return stub.deleteDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   telcoAutomationClient.removeDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of deployment to initiate delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDeployment(DeploymentName name) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + removeDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   telcoAutomationClient.removeDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of deployment to initiate delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDeployment(String name) { + RemoveDeploymentRequest request = RemoveDeploymentRequest.newBuilder().setName(name).build(); + removeDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RemoveDeploymentRequest request =
+   *       RemoveDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   telcoAutomationClient.removeDeployment(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 void removeDeployment(RemoveDeploymentRequest request) { + removeDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RemoveDeploymentRequest request =
+   *       RemoveDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.removeDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable removeDeploymentCallable() { + return stub.removeDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified revision of the deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteDeploymentRevisionRequest request =
+   *       DeleteDeploymentRevisionRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.deleteDeploymentRevision(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 Deployment deleteDeploymentRevision(DeleteDeploymentRevisionRequest request) { + return deleteDeploymentRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified revision of the deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeleteDeploymentRevisionRequest request =
+   *       DeleteDeploymentRevisionRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.deleteDeploymentRevisionCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteDeploymentRevisionCallable() { + return stub.deleteDeploymentRevisionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   OrchestrationClusterName parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+   *   for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(OrchestrationClusterName parent) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *           .toString();
+   *   for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(String parent) { + ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder().setParent(parent).build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element : telcoAutomationClient.listDeployments(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 ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest request) { + return listDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listDeploymentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Deployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentsPagedCallable() { + return stub.listDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentsRequest request =
+   *       ListDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentsResponse response =
+   *         telcoAutomationClient.listDeploymentsCallable().call(request);
+   *     for (Deployment element : response.getDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentsCallable() { + return stub.listDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(DeploymentName name) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(String name) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder().setName(name).build(); + return listDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentRevisionsRequest request =
+   *       ListDeploymentRevisionsRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Deployment element :
+   *       telcoAutomationClient.listDeploymentRevisions(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 ListDeploymentRevisionsPagedResponse listDeploymentRevisions( + ListDeploymentRevisionsRequest request) { + return listDeploymentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentRevisionsRequest request =
+   *       ListDeploymentRevisionsRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listDeploymentRevisionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Deployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentRevisionsPagedCallable() { + return stub.listDeploymentRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListDeploymentRevisionsRequest request =
+   *       ListDeploymentRevisionsRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentRevisionsResponse response =
+   *         telcoAutomationClient.listDeploymentRevisionsCallable().call(request);
+   *     for (Deployment element : response.getDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDeploymentRevisionsCallable() { + return stub.listDeploymentRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   DiscardDeploymentChangesResponse response =
+   *       telcoAutomationClient.discardDeploymentChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardDeploymentChangesResponse discardDeploymentChanges(DeploymentName name) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return discardDeploymentChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   DiscardDeploymentChangesResponse response =
+   *       telcoAutomationClient.discardDeploymentChanges(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardDeploymentChangesResponse discardDeploymentChanges(String name) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder().setName(name).build(); + return discardDeploymentChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardDeploymentChangesRequest request =
+   *       DiscardDeploymentChangesRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   DiscardDeploymentChangesResponse response =
+   *       telcoAutomationClient.discardDeploymentChanges(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 DiscardDeploymentChangesResponse discardDeploymentChanges( + DiscardDeploymentChangesRequest request) { + return discardDeploymentChangesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DiscardDeploymentChangesRequest request =
+   *       DiscardDeploymentChangesRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.discardDeploymentChangesCallable().futureCall(request);
+   *   // Do something.
+   *   DiscardDeploymentChangesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + discardDeploymentChangesCallable() { + return stub.discardDeploymentChangesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   Deployment response = telcoAutomationClient.applyDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to apply to orchestration cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment applyDeployment(DeploymentName name) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return applyDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   Deployment response = telcoAutomationClient.applyDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment to apply to orchestration cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment applyDeployment(String name) { + ApplyDeploymentRequest request = ApplyDeploymentRequest.newBuilder().setName(name).build(); + return applyDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyDeploymentRequest request =
+   *       ApplyDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   Deployment response = telcoAutomationClient.applyDeployment(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 Deployment applyDeployment(ApplyDeploymentRequest request) { + return applyDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyDeploymentRequest request =
+   *       ApplyDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.applyDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable applyDeploymentCallable() { + return stub.applyDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   ComputeDeploymentStatusResponse response =
+   *       telcoAutomationClient.computeDeploymentStatus(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeDeploymentStatusResponse computeDeploymentStatus(DeploymentName name) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return computeDeploymentStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   ComputeDeploymentStatusResponse response =
+   *       telcoAutomationClient.computeDeploymentStatus(name);
+   * }
+   * }
+ * + * @param name Required. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeDeploymentStatusResponse computeDeploymentStatus(String name) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder().setName(name).build(); + return computeDeploymentStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ComputeDeploymentStatusRequest request =
+   *       ComputeDeploymentStatusRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ComputeDeploymentStatusResponse response =
+   *       telcoAutomationClient.computeDeploymentStatus(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 ComputeDeploymentStatusResponse computeDeploymentStatus( + ComputeDeploymentStatusRequest request) { + return computeDeploymentStatusCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ComputeDeploymentStatusRequest request =
+   *       ComputeDeploymentStatusRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.computeDeploymentStatusCallable().futureCall(request);
+   *   // Do something.
+   *   ComputeDeploymentStatusResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + computeDeploymentStatusCallable() { + return stub.computeDeploymentStatusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   String revisionId = "revisionId-1507445162";
+   *   Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId);
+   * }
+   * }
+ * + * @param name Required. Name of the deployment. + * @param revisionId Required. The revision id of deployment to roll back to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment rollbackDeployment(DeploymentName name, String revisionId) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRevisionId(revisionId) + .build(); + return rollbackDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   String revisionId = "revisionId-1507445162";
+   *   Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId);
+   * }
+   * }
+ * + * @param name Required. Name of the deployment. + * @param revisionId Required. The revision id of deployment to roll back to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment rollbackDeployment(String name, String revisionId) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder().setName(name).setRevisionId(revisionId).build(); + return rollbackDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RollbackDeploymentRequest request =
+   *       RollbackDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setRevisionId("revisionId-1507445162")
+   *           .build();
+   *   Deployment response = telcoAutomationClient.rollbackDeployment(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 Deployment rollbackDeployment(RollbackDeploymentRequest request) { + return rollbackDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   RollbackDeploymentRequest request =
+   *       RollbackDeploymentRequest.newBuilder()
+   *           .setName(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setRevisionId("revisionId-1507445162")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.rollbackDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   Deployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable rollbackDeploymentCallable() { + return stub.rollbackDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   HydratedDeploymentName name =
+   *       HydratedDeploymentName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[ORCHESTRATION_CLUSTER]",
+   *           "[DEPLOYMENT]",
+   *           "[HYDRATED_DEPLOYMENT]");
+   *   HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. Name of the hydrated deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment getHydratedDeployment(HydratedDeploymentName name) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       HydratedDeploymentName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[ORCHESTRATION_CLUSTER]",
+   *               "[DEPLOYMENT]",
+   *               "[HYDRATED_DEPLOYMENT]")
+   *           .toString();
+   *   HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. Name of the hydrated deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment getHydratedDeployment(String name) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder().setName(name).build(); + return getHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetHydratedDeploymentRequest request =
+   *       GetHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(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 HydratedDeployment getHydratedDeployment(GetHydratedDeploymentRequest request) { + return getHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetHydratedDeploymentRequest request =
+   *       GetHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.getHydratedDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   HydratedDeployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getHydratedDeploymentCallable() { + return stub.getHydratedDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   DeploymentName parent =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]");
+   *   for (HydratedDeployment element :
+   *       telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The deployment managing the hydrated deployments. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(DeploymentName parent) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listHydratedDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String parent =
+   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *           .toString();
+   *   for (HydratedDeployment element :
+   *       telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The deployment managing the hydrated deployments. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(String parent) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder().setParent(parent).build(); + return listHydratedDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListHydratedDeploymentsRequest request =
+   *       ListHydratedDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (HydratedDeployment element :
+   *       telcoAutomationClient.listHydratedDeployments(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 ListHydratedDeploymentsPagedResponse listHydratedDeployments( + ListHydratedDeploymentsRequest request) { + return listHydratedDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListHydratedDeploymentsRequest request =
+   *       ListHydratedDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listHydratedDeploymentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (HydratedDeployment element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listHydratedDeploymentsPagedCallable() { + return stub.listHydratedDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListHydratedDeploymentsRequest request =
+   *       ListHydratedDeploymentsRequest.newBuilder()
+   *           .setParent(
+   *               DeploymentName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListHydratedDeploymentsResponse response =
+   *         telcoAutomationClient.listHydratedDeploymentsCallable().call(request);
+   *     for (HydratedDeployment element : response.getHydratedDeploymentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listHydratedDeploymentsCallable() { + return stub.listHydratedDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   HydratedDeployment response =
+   *       telcoAutomationClient.updateHydratedDeployment(hydratedDeployment, updateMask);
+   * }
+   * }
+ * + * @param hydratedDeployment Required. The hydrated deployment to update. + * @param updateMask Required. The list of fields to update. Update mask supports a special value + * `*` which fully replaces (equivalent to PUT) the resource provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment updateHydratedDeployment( + HydratedDeployment hydratedDeployment, FieldMask updateMask) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(hydratedDeployment) + .setUpdateMask(updateMask) + .build(); + return updateHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateHydratedDeploymentRequest request =
+   *       UpdateHydratedDeploymentRequest.newBuilder()
+   *           .setHydratedDeployment(HydratedDeployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   HydratedDeployment response = telcoAutomationClient.updateHydratedDeployment(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 HydratedDeployment updateHydratedDeployment( + UpdateHydratedDeploymentRequest request) { + return updateHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   UpdateHydratedDeploymentRequest request =
+   *       UpdateHydratedDeploymentRequest.newBuilder()
+   *           .setHydratedDeployment(HydratedDeployment.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.updateHydratedDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   HydratedDeployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateHydratedDeploymentCallable() { + return stub.updateHydratedDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   HydratedDeploymentName name =
+   *       HydratedDeploymentName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[ORCHESTRATION_CLUSTER]",
+   *           "[DEPLOYMENT]",
+   *           "[HYDRATED_DEPLOYMENT]");
+   *   HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the hydrated deployment to apply. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment applyHydratedDeployment(HydratedDeploymentName name) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return applyHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   String name =
+   *       HydratedDeploymentName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[ORCHESTRATION_CLUSTER]",
+   *               "[DEPLOYMENT]",
+   *               "[HYDRATED_DEPLOYMENT]")
+   *           .toString();
+   *   HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name);
+   * }
+   * }
+ * + * @param name Required. The name of the hydrated deployment to apply. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment applyHydratedDeployment(String name) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder().setName(name).build(); + return applyHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyHydratedDeploymentRequest request =
+   *       ApplyHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(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 HydratedDeployment applyHydratedDeployment(ApplyHydratedDeploymentRequest request) { + return applyHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ApplyHydratedDeploymentRequest request =
+   *       ApplyHydratedDeploymentRequest.newBuilder()
+   *           .setName(
+   *               HydratedDeploymentName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[ORCHESTRATION_CLUSTER]",
+   *                       "[DEPLOYMENT]",
+   *                       "[HYDRATED_DEPLOYMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.applyHydratedDeploymentCallable().futureCall(request);
+   *   // Do something.
+   *   HydratedDeployment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + applyHydratedDeploymentCallable() { + return stub.applyHydratedDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : telcoAutomationClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       telcoAutomationClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         telcoAutomationClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = telcoAutomationClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = telcoAutomationClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListOrchestrationClustersPagedResponse + extends AbstractPagedListResponse< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster, + ListOrchestrationClustersPage, + ListOrchestrationClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOrchestrationClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOrchestrationClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOrchestrationClustersPagedResponse(ListOrchestrationClustersPage page) { + super(page, ListOrchestrationClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOrchestrationClustersPage + extends AbstractPage< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster, + ListOrchestrationClustersPage> { + + private ListOrchestrationClustersPage( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ListOrchestrationClustersResponse response) { + super(context, response); + } + + private static ListOrchestrationClustersPage createEmptyPage() { + return new ListOrchestrationClustersPage(null, null); + } + + @Override + protected ListOrchestrationClustersPage createPage( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ListOrchestrationClustersResponse response) { + return new ListOrchestrationClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOrchestrationClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster, + ListOrchestrationClustersPage, + ListOrchestrationClustersFixedSizeCollection> { + + private ListOrchestrationClustersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOrchestrationClustersFixedSizeCollection createEmptyCollection() { + return new ListOrchestrationClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListOrchestrationClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOrchestrationClustersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEdgeSlmsPagedResponse + extends AbstractPagedListResponse< + ListEdgeSlmsRequest, + ListEdgeSlmsResponse, + EdgeSlm, + ListEdgeSlmsPage, + ListEdgeSlmsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEdgeSlmsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEdgeSlmsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEdgeSlmsPagedResponse(ListEdgeSlmsPage page) { + super(page, ListEdgeSlmsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEdgeSlmsPage + extends AbstractPage { + + private ListEdgeSlmsPage( + PageContext context, + ListEdgeSlmsResponse response) { + super(context, response); + } + + private static ListEdgeSlmsPage createEmptyPage() { + return new ListEdgeSlmsPage(null, null); + } + + @Override + protected ListEdgeSlmsPage createPage( + PageContext context, + ListEdgeSlmsResponse response) { + return new ListEdgeSlmsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEdgeSlmsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEdgeSlmsRequest, + ListEdgeSlmsResponse, + EdgeSlm, + ListEdgeSlmsPage, + ListEdgeSlmsFixedSizeCollection> { + + private ListEdgeSlmsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEdgeSlmsFixedSizeCollection createEmptyCollection() { + return new ListEdgeSlmsFixedSizeCollection(null, 0); + } + + @Override + protected ListEdgeSlmsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEdgeSlmsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBlueprintsPagedResponse + extends AbstractPagedListResponse< + ListBlueprintsRequest, + ListBlueprintsResponse, + Blueprint, + ListBlueprintsPage, + ListBlueprintsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBlueprintsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBlueprintsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBlueprintsPagedResponse(ListBlueprintsPage page) { + super(page, ListBlueprintsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBlueprintsPage + extends AbstractPage< + ListBlueprintsRequest, ListBlueprintsResponse, Blueprint, ListBlueprintsPage> { + + private ListBlueprintsPage( + PageContext context, + ListBlueprintsResponse response) { + super(context, response); + } + + private static ListBlueprintsPage createEmptyPage() { + return new ListBlueprintsPage(null, null); + } + + @Override + protected ListBlueprintsPage createPage( + PageContext context, + ListBlueprintsResponse response) { + return new ListBlueprintsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBlueprintsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBlueprintsRequest, + ListBlueprintsResponse, + Blueprint, + ListBlueprintsPage, + ListBlueprintsFixedSizeCollection> { + + private ListBlueprintsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBlueprintsFixedSizeCollection createEmptyCollection() { + return new ListBlueprintsFixedSizeCollection(null, 0); + } + + @Override + protected ListBlueprintsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBlueprintsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBlueprintRevisionsPagedResponse + extends AbstractPagedListResponse< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + Blueprint, + ListBlueprintRevisionsPage, + ListBlueprintRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBlueprintRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBlueprintRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBlueprintRevisionsPagedResponse(ListBlueprintRevisionsPage page) { + super(page, ListBlueprintRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBlueprintRevisionsPage + extends AbstractPage< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + Blueprint, + ListBlueprintRevisionsPage> { + + private ListBlueprintRevisionsPage( + PageContext + context, + ListBlueprintRevisionsResponse response) { + super(context, response); + } + + private static ListBlueprintRevisionsPage createEmptyPage() { + return new ListBlueprintRevisionsPage(null, null); + } + + @Override + protected ListBlueprintRevisionsPage createPage( + PageContext + context, + ListBlueprintRevisionsResponse response) { + return new ListBlueprintRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBlueprintRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + Blueprint, + ListBlueprintRevisionsPage, + ListBlueprintRevisionsFixedSizeCollection> { + + private ListBlueprintRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBlueprintRevisionsFixedSizeCollection createEmptyCollection() { + return new ListBlueprintRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListBlueprintRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBlueprintRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchBlueprintRevisionsPagedResponse + extends AbstractPagedListResponse< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + Blueprint, + SearchBlueprintRevisionsPage, + SearchBlueprintRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchBlueprintRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchBlueprintRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchBlueprintRevisionsPagedResponse(SearchBlueprintRevisionsPage page) { + super(page, SearchBlueprintRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchBlueprintRevisionsPage + extends AbstractPage< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + Blueprint, + SearchBlueprintRevisionsPage> { + + private SearchBlueprintRevisionsPage( + PageContext + context, + SearchBlueprintRevisionsResponse response) { + super(context, response); + } + + private static SearchBlueprintRevisionsPage createEmptyPage() { + return new SearchBlueprintRevisionsPage(null, null); + } + + @Override + protected SearchBlueprintRevisionsPage createPage( + PageContext + context, + SearchBlueprintRevisionsResponse response) { + return new SearchBlueprintRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchBlueprintRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + Blueprint, + SearchBlueprintRevisionsPage, + SearchBlueprintRevisionsFixedSizeCollection> { + + private SearchBlueprintRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchBlueprintRevisionsFixedSizeCollection createEmptyCollection() { + return new SearchBlueprintRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected SearchBlueprintRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchBlueprintRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchDeploymentRevisionsPagedResponse + extends AbstractPagedListResponse< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment, + SearchDeploymentRevisionsPage, + SearchDeploymentRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchDeploymentRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchDeploymentRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchDeploymentRevisionsPagedResponse(SearchDeploymentRevisionsPage page) { + super(page, SearchDeploymentRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchDeploymentRevisionsPage + extends AbstractPage< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment, + SearchDeploymentRevisionsPage> { + + private SearchDeploymentRevisionsPage( + PageContext + context, + SearchDeploymentRevisionsResponse response) { + super(context, response); + } + + private static SearchDeploymentRevisionsPage createEmptyPage() { + return new SearchDeploymentRevisionsPage(null, null); + } + + @Override + protected SearchDeploymentRevisionsPage createPage( + PageContext + context, + SearchDeploymentRevisionsResponse response) { + return new SearchDeploymentRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchDeploymentRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment, + SearchDeploymentRevisionsPage, + SearchDeploymentRevisionsFixedSizeCollection> { + + private SearchDeploymentRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchDeploymentRevisionsFixedSizeCollection createEmptyCollection() { + return new SearchDeploymentRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected SearchDeploymentRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchDeploymentRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListPublicBlueprintsPagedResponse + extends AbstractPagedListResponse< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + PublicBlueprint, + ListPublicBlueprintsPage, + ListPublicBlueprintsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPublicBlueprintsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPublicBlueprintsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPublicBlueprintsPagedResponse(ListPublicBlueprintsPage page) { + super(page, ListPublicBlueprintsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPublicBlueprintsPage + extends AbstractPage< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + PublicBlueprint, + ListPublicBlueprintsPage> { + + private ListPublicBlueprintsPage( + PageContext + context, + ListPublicBlueprintsResponse response) { + super(context, response); + } + + private static ListPublicBlueprintsPage createEmptyPage() { + return new ListPublicBlueprintsPage(null, null); + } + + @Override + protected ListPublicBlueprintsPage createPage( + PageContext + context, + ListPublicBlueprintsResponse response) { + return new ListPublicBlueprintsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPublicBlueprintsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + PublicBlueprint, + ListPublicBlueprintsPage, + ListPublicBlueprintsFixedSizeCollection> { + + private ListPublicBlueprintsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPublicBlueprintsFixedSizeCollection createEmptyCollection() { + return new ListPublicBlueprintsFixedSizeCollection(null, 0); + } + + @Override + protected ListPublicBlueprintsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPublicBlueprintsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListDeploymentsRequest, + ListDeploymentsResponse, + Deployment, + ListDeploymentsPage, + ListDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeploymentsPagedResponse(ListDeploymentsPage page) { + super(page, ListDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeploymentsPage + extends AbstractPage< + ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { + + private ListDeploymentsPage( + PageContext context, + ListDeploymentsResponse response) { + super(context, response); + } + + private static ListDeploymentsPage createEmptyPage() { + return new ListDeploymentsPage(null, null); + } + + @Override + protected ListDeploymentsPage createPage( + PageContext context, + ListDeploymentsResponse response) { + return new ListDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeploymentsRequest, + ListDeploymentsResponse, + Deployment, + ListDeploymentsPage, + ListDeploymentsFixedSizeCollection> { + + private ListDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDeploymentRevisionsPagedResponse + extends AbstractPagedListResponse< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + Deployment, + ListDeploymentRevisionsPage, + ListDeploymentRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeploymentRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeploymentRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeploymentRevisionsPagedResponse(ListDeploymentRevisionsPage page) { + super(page, ListDeploymentRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeploymentRevisionsPage + extends AbstractPage< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + Deployment, + ListDeploymentRevisionsPage> { + + private ListDeploymentRevisionsPage( + PageContext + context, + ListDeploymentRevisionsResponse response) { + super(context, response); + } + + private static ListDeploymentRevisionsPage createEmptyPage() { + return new ListDeploymentRevisionsPage(null, null); + } + + @Override + protected ListDeploymentRevisionsPage createPage( + PageContext + context, + ListDeploymentRevisionsResponse response) { + return new ListDeploymentRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeploymentRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + Deployment, + ListDeploymentRevisionsPage, + ListDeploymentRevisionsFixedSizeCollection> { + + private ListDeploymentRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeploymentRevisionsFixedSizeCollection createEmptyCollection() { + return new ListDeploymentRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListDeploymentRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeploymentRevisionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListHydratedDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment, + ListHydratedDeploymentsPage, + ListHydratedDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListHydratedDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListHydratedDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListHydratedDeploymentsPagedResponse(ListHydratedDeploymentsPage page) { + super(page, ListHydratedDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListHydratedDeploymentsPage + extends AbstractPage< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment, + ListHydratedDeploymentsPage> { + + private ListHydratedDeploymentsPage( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ListHydratedDeploymentsResponse response) { + super(context, response); + } + + private static ListHydratedDeploymentsPage createEmptyPage() { + return new ListHydratedDeploymentsPage(null, null); + } + + @Override + protected ListHydratedDeploymentsPage createPage( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ListHydratedDeploymentsResponse response) { + return new ListHydratedDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListHydratedDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment, + ListHydratedDeploymentsPage, + ListHydratedDeploymentsFixedSizeCollection> { + + private ListHydratedDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListHydratedDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListHydratedDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListHydratedDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListHydratedDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java new file mode 100644 index 000000000000..444d7b856913 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java @@ -0,0 +1,782 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.stub.TelcoAutomationStubSettings; +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 TelcoAutomationClient}. + * + *

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

    + *
  • The default service address (telcoautomation.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 getOrchestrationCluster 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
+ * TelcoAutomationSettings.Builder telcoAutomationSettingsBuilder =
+ *     TelcoAutomationSettings.newBuilder();
+ * telcoAutomationSettingsBuilder
+ *     .getOrchestrationClusterSettings()
+ *     .setRetrySettings(
+ *         telcoAutomationSettingsBuilder
+ *             .getOrchestrationClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TelcoAutomationSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TelcoAutomationSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listOrchestrationClusters. */ + public PagedCallSettings< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listOrchestrationClustersSettings(); + } + + /** Returns the object with the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings + getOrchestrationClusterSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getOrchestrationClusterSettings(); + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings + createOrchestrationClusterSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createOrchestrationClusterSettings(); + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public OperationCallSettings< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()) + .createOrchestrationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings + deleteOrchestrationClusterSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteOrchestrationClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public OperationCallSettings + deleteOrchestrationClusterOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()) + .deleteOrchestrationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to listEdgeSlms. */ + public PagedCallSettings + listEdgeSlmsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listEdgeSlmsSettings(); + } + + /** Returns the object with the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings getEdgeSlmSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getEdgeSlmSettings(); + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings createEdgeSlmSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createEdgeSlmSettings(); + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public OperationCallSettings + createEdgeSlmOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createEdgeSlmOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings deleteEdgeSlmSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteEdgeSlmSettings(); + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public OperationCallSettings + deleteEdgeSlmOperationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteEdgeSlmOperationSettings(); + } + + /** Returns the object with the settings used for calls to createBlueprint. */ + public UnaryCallSettings createBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to updateBlueprint. */ + public UnaryCallSettings updateBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).updateBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to getBlueprint. */ + public UnaryCallSettings getBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings deleteBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to deleteBlueprintRevision. */ + public UnaryCallSettings + deleteBlueprintRevisionSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteBlueprintRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listBlueprints. */ + public PagedCallSettings< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listBlueprintsSettings(); + } + + /** Returns the object with the settings used for calls to approveBlueprint. */ + public UnaryCallSettings approveBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).approveBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings proposeBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).proposeBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings rejectBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).rejectBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listBlueprintRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).searchBlueprintRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).searchDeploymentRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings + discardBlueprintChangesSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).discardBlueprintChangesSettings(); + } + + /** Returns the object with the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listPublicBlueprintsSettings(); + } + + /** Returns the object with the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings + getPublicBlueprintSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getPublicBlueprintSettings(); + } + + /** Returns the object with the settings used for calls to createDeployment. */ + public UnaryCallSettings createDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).createDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to updateDeployment. */ + public UnaryCallSettings updateDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).updateDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to deleteDeployment. */ + public UnaryCallSettings deleteDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to removeDeployment. */ + public UnaryCallSettings removeDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).removeDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to deleteDeploymentRevision. */ + public UnaryCallSettings + deleteDeploymentRevisionSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).deleteDeploymentRevisionSettings(); + } + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listDeploymentRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings + discardDeploymentChangesSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).discardDeploymentChangesSettings(); + } + + /** Returns the object with the settings used for calls to applyDeployment. */ + public UnaryCallSettings applyDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).applyDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings + computeDeploymentStatusSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).computeDeploymentStatusSettings(); + } + + /** Returns the object with the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings rollbackDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).rollbackDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings + getHydratedDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getHydratedDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listHydratedDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings + updateHydratedDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).updateHydratedDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings + applyHydratedDeploymentSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).applyHydratedDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((TelcoAutomationStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final TelcoAutomationSettings create(TelcoAutomationStubSettings stub) + throws IOException { + return new TelcoAutomationSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TelcoAutomationStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TelcoAutomationStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TelcoAutomationStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TelcoAutomationStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TelcoAutomationStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TelcoAutomationStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TelcoAutomationStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TelcoAutomationStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TelcoAutomationSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TelcoAutomationSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TelcoAutomationStubSettings.newBuilder(clientContext)); + } + + protected Builder(TelcoAutomationSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TelcoAutomationStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TelcoAutomationStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TelcoAutomationStubSettings.newHttpJsonBuilder()); + } + + public TelcoAutomationStubSettings.Builder getStubSettingsBuilder() { + return ((TelcoAutomationStubSettings.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 listOrchestrationClusters. */ + public PagedCallSettings.Builder< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return getStubSettingsBuilder().listOrchestrationClustersSettings(); + } + + /** Returns the builder for the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings.Builder + getOrchestrationClusterSettings() { + return getStubSettingsBuilder().getOrchestrationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings.Builder + createOrchestrationClusterSettings() { + return getStubSettingsBuilder().createOrchestrationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + public OperationCallSettings.Builder< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return getStubSettingsBuilder().createOrchestrationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings.Builder + deleteOrchestrationClusterSettings() { + return getStubSettingsBuilder().deleteOrchestrationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + public OperationCallSettings.Builder< + DeleteOrchestrationClusterRequest, Empty, OperationMetadata> + deleteOrchestrationClusterOperationSettings() { + return getStubSettingsBuilder().deleteOrchestrationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listEdgeSlms. */ + public PagedCallSettings.Builder< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings() { + return getStubSettingsBuilder().listEdgeSlmsSettings(); + } + + /** Returns the builder for the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings.Builder getEdgeSlmSettings() { + return getStubSettingsBuilder().getEdgeSlmSettings(); + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings.Builder createEdgeSlmSettings() { + return getStubSettingsBuilder().createEdgeSlmSettings(); + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + public OperationCallSettings.Builder + createEdgeSlmOperationSettings() { + return getStubSettingsBuilder().createEdgeSlmOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings.Builder deleteEdgeSlmSettings() { + return getStubSettingsBuilder().deleteEdgeSlmSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + public OperationCallSettings.Builder + deleteEdgeSlmOperationSettings() { + return getStubSettingsBuilder().deleteEdgeSlmOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createBlueprint. */ + public UnaryCallSettings.Builder createBlueprintSettings() { + return getStubSettingsBuilder().createBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to updateBlueprint. */ + public UnaryCallSettings.Builder updateBlueprintSettings() { + return getStubSettingsBuilder().updateBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to getBlueprint. */ + public UnaryCallSettings.Builder getBlueprintSettings() { + return getStubSettingsBuilder().getBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings.Builder deleteBlueprintSettings() { + return getStubSettingsBuilder().deleteBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBlueprintRevision. */ + public UnaryCallSettings.Builder + deleteBlueprintRevisionSettings() { + return getStubSettingsBuilder().deleteBlueprintRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listBlueprints. */ + public PagedCallSettings.Builder< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return getStubSettingsBuilder().listBlueprintsSettings(); + } + + /** Returns the builder for the settings used for calls to approveBlueprint. */ + public UnaryCallSettings.Builder + approveBlueprintSettings() { + return getStubSettingsBuilder().approveBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings.Builder + proposeBlueprintSettings() { + return getStubSettingsBuilder().proposeBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings.Builder rejectBlueprintSettings() { + return getStubSettingsBuilder().rejectBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings.Builder< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return getStubSettingsBuilder().listBlueprintRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings.Builder< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return getStubSettingsBuilder().searchBlueprintRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings.Builder< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return getStubSettingsBuilder().searchDeploymentRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings.Builder< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesSettings() { + return getStubSettingsBuilder().discardBlueprintChangesSettings(); + } + + /** Returns the builder for the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings.Builder< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return getStubSettingsBuilder().listPublicBlueprintsSettings(); + } + + /** Returns the builder for the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings.Builder + getPublicBlueprintSettings() { + return getStubSettingsBuilder().getPublicBlueprintSettings(); + } + + /** Returns the builder for the settings used for calls to createDeployment. */ + public UnaryCallSettings.Builder + createDeploymentSettings() { + return getStubSettingsBuilder().createDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to updateDeployment. */ + public UnaryCallSettings.Builder + updateDeploymentSettings() { + return getStubSettingsBuilder().updateDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to getDeployment. */ + public UnaryCallSettings.Builder getDeploymentSettings() { + return getStubSettingsBuilder().getDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDeployment. */ + public UnaryCallSettings.Builder deleteDeploymentSettings() { + return getStubSettingsBuilder().deleteDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to removeDeployment. */ + public UnaryCallSettings.Builder removeDeploymentSettings() { + return getStubSettingsBuilder().removeDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDeploymentRevision. */ + public UnaryCallSettings.Builder + deleteDeploymentRevisionSettings() { + return getStubSettingsBuilder().deleteDeploymentRevisionSettings(); + } + + /** Returns the builder for the settings used for calls to listDeployments. */ + public PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return getStubSettingsBuilder().listDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings.Builder< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return getStubSettingsBuilder().listDeploymentRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings.Builder< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesSettings() { + return getStubSettingsBuilder().discardDeploymentChangesSettings(); + } + + /** Returns the builder for the settings used for calls to applyDeployment. */ + public UnaryCallSettings.Builder applyDeploymentSettings() { + return getStubSettingsBuilder().applyDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings.Builder< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusSettings() { + return getStubSettingsBuilder().computeDeploymentStatusSettings(); + } + + /** Returns the builder for the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings.Builder + rollbackDeploymentSettings() { + return getStubSettingsBuilder().rollbackDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings.Builder + getHydratedDeploymentSettings() { + return getStubSettingsBuilder().getHydratedDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings.Builder< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return getStubSettingsBuilder().listHydratedDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings.Builder + updateHydratedDeploymentSettings() { + return getStubSettingsBuilder().updateHydratedDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings.Builder + applyHydratedDeploymentSettings() { + return getStubSettingsBuilder().applyHydratedDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public TelcoAutomationSettings build() throws IOException { + return new TelcoAutomationSettings(this); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/gapic_metadata.json b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/gapic_metadata.json new file mode 100644 index 000000000000..872d7afb28ab --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/gapic_metadata.json @@ -0,0 +1,141 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.telcoautomation.v1alpha1", + "libraryPackage": "com.google.cloud.telcoautomation.v1alpha1", + "services": { + "TelcoAutomation": { + "clients": { + "grpc": { + "libraryClient": "TelcoAutomationClient", + "rpcs": { + "ApplyDeployment": { + "methods": ["applyDeployment", "applyDeployment", "applyDeployment", "applyDeploymentCallable"] + }, + "ApplyHydratedDeployment": { + "methods": ["applyHydratedDeployment", "applyHydratedDeployment", "applyHydratedDeployment", "applyHydratedDeploymentCallable"] + }, + "ApproveBlueprint": { + "methods": ["approveBlueprint", "approveBlueprint", "approveBlueprint", "approveBlueprintCallable"] + }, + "ComputeDeploymentStatus": { + "methods": ["computeDeploymentStatus", "computeDeploymentStatus", "computeDeploymentStatus", "computeDeploymentStatusCallable"] + }, + "CreateBlueprint": { + "methods": ["createBlueprint", "createBlueprint", "createBlueprint", "createBlueprintCallable"] + }, + "CreateDeployment": { + "methods": ["createDeployment", "createDeployment", "createDeployment", "createDeploymentCallable"] + }, + "CreateEdgeSlm": { + "methods": ["createEdgeSlmAsync", "createEdgeSlmAsync", "createEdgeSlmAsync", "createEdgeSlmOperationCallable", "createEdgeSlmCallable"] + }, + "CreateOrchestrationCluster": { + "methods": ["createOrchestrationClusterAsync", "createOrchestrationClusterAsync", "createOrchestrationClusterAsync", "createOrchestrationClusterOperationCallable", "createOrchestrationClusterCallable"] + }, + "DeleteBlueprint": { + "methods": ["deleteBlueprint", "deleteBlueprint", "deleteBlueprint", "deleteBlueprintCallable"] + }, + "DeleteBlueprintRevision": { + "methods": ["deleteBlueprintRevision", "deleteBlueprintRevisionCallable"] + }, + "DeleteDeployment": { + "methods": ["deleteDeployment", "deleteDeployment", "deleteDeployment", "deleteDeploymentCallable"] + }, + "DeleteDeploymentRevision": { + "methods": ["deleteDeploymentRevision", "deleteDeploymentRevisionCallable"] + }, + "DeleteEdgeSlm": { + "methods": ["deleteEdgeSlmAsync", "deleteEdgeSlmAsync", "deleteEdgeSlmAsync", "deleteEdgeSlmOperationCallable", "deleteEdgeSlmCallable"] + }, + "DeleteOrchestrationCluster": { + "methods": ["deleteOrchestrationClusterAsync", "deleteOrchestrationClusterAsync", "deleteOrchestrationClusterAsync", "deleteOrchestrationClusterOperationCallable", "deleteOrchestrationClusterCallable"] + }, + "DiscardBlueprintChanges": { + "methods": ["discardBlueprintChanges", "discardBlueprintChanges", "discardBlueprintChanges", "discardBlueprintChangesCallable"] + }, + "DiscardDeploymentChanges": { + "methods": ["discardDeploymentChanges", "discardDeploymentChanges", "discardDeploymentChanges", "discardDeploymentChangesCallable"] + }, + "GetBlueprint": { + "methods": ["getBlueprint", "getBlueprint", "getBlueprint", "getBlueprintCallable"] + }, + "GetDeployment": { + "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"] + }, + "GetEdgeSlm": { + "methods": ["getEdgeSlm", "getEdgeSlm", "getEdgeSlm", "getEdgeSlmCallable"] + }, + "GetHydratedDeployment": { + "methods": ["getHydratedDeployment", "getHydratedDeployment", "getHydratedDeployment", "getHydratedDeploymentCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetOrchestrationCluster": { + "methods": ["getOrchestrationCluster", "getOrchestrationCluster", "getOrchestrationCluster", "getOrchestrationClusterCallable"] + }, + "GetPublicBlueprint": { + "methods": ["getPublicBlueprint", "getPublicBlueprint", "getPublicBlueprint", "getPublicBlueprintCallable"] + }, + "ListBlueprintRevisions": { + "methods": ["listBlueprintRevisions", "listBlueprintRevisions", "listBlueprintRevisions", "listBlueprintRevisionsPagedCallable", "listBlueprintRevisionsCallable"] + }, + "ListBlueprints": { + "methods": ["listBlueprints", "listBlueprints", "listBlueprints", "listBlueprintsPagedCallable", "listBlueprintsCallable"] + }, + "ListDeploymentRevisions": { + "methods": ["listDeploymentRevisions", "listDeploymentRevisions", "listDeploymentRevisions", "listDeploymentRevisionsPagedCallable", "listDeploymentRevisionsCallable"] + }, + "ListDeployments": { + "methods": ["listDeployments", "listDeployments", "listDeployments", "listDeploymentsPagedCallable", "listDeploymentsCallable"] + }, + "ListEdgeSlms": { + "methods": ["listEdgeSlms", "listEdgeSlms", "listEdgeSlms", "listEdgeSlmsPagedCallable", "listEdgeSlmsCallable"] + }, + "ListHydratedDeployments": { + "methods": ["listHydratedDeployments", "listHydratedDeployments", "listHydratedDeployments", "listHydratedDeploymentsPagedCallable", "listHydratedDeploymentsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListOrchestrationClusters": { + "methods": ["listOrchestrationClusters", "listOrchestrationClusters", "listOrchestrationClusters", "listOrchestrationClustersPagedCallable", "listOrchestrationClustersCallable"] + }, + "ListPublicBlueprints": { + "methods": ["listPublicBlueprints", "listPublicBlueprints", "listPublicBlueprints", "listPublicBlueprintsPagedCallable", "listPublicBlueprintsCallable"] + }, + "ProposeBlueprint": { + "methods": ["proposeBlueprint", "proposeBlueprint", "proposeBlueprint", "proposeBlueprintCallable"] + }, + "RejectBlueprint": { + "methods": ["rejectBlueprint", "rejectBlueprint", "rejectBlueprint", "rejectBlueprintCallable"] + }, + "RemoveDeployment": { + "methods": ["removeDeployment", "removeDeployment", "removeDeployment", "removeDeploymentCallable"] + }, + "RollbackDeployment": { + "methods": ["rollbackDeployment", "rollbackDeployment", "rollbackDeployment", "rollbackDeploymentCallable"] + }, + "SearchBlueprintRevisions": { + "methods": ["searchBlueprintRevisions", "searchBlueprintRevisions", "searchBlueprintRevisions", "searchBlueprintRevisionsPagedCallable", "searchBlueprintRevisionsCallable"] + }, + "SearchDeploymentRevisions": { + "methods": ["searchDeploymentRevisions", "searchDeploymentRevisions", "searchDeploymentRevisions", "searchDeploymentRevisionsPagedCallable", "searchDeploymentRevisionsCallable"] + }, + "UpdateBlueprint": { + "methods": ["updateBlueprint", "updateBlueprint", "updateBlueprintCallable"] + }, + "UpdateDeployment": { + "methods": ["updateDeployment", "updateDeployment", "updateDeploymentCallable"] + }, + "UpdateHydratedDeployment": { + "methods": ["updateHydratedDeployment", "updateHydratedDeployment", "updateHydratedDeploymentCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/package-info.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/package-info.java new file mode 100644 index 000000000000..b7a12b469cea --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/package-info.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Telco Automation API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= TelcoAutomationClient ======================= + * + *

Service Description: TelcoAutomation Service manages the control plane cluster a.k.a. + * Orchestration Cluster (GKE cluster with config controller) of TNA. It also exposes blueprint APIs + * which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE + * clusters) and deployment of network functions. + * + *

Sample for TelcoAutomationClient: + * + *

{@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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+ *   OrchestrationClusterName name =
+ *       OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+ *   OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.telcoautomation.v1alpha1; + +import javax.annotation.Generated; diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationCallableFactory.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationCallableFactory.java new file mode 100644 index 000000000000..58befdd4ac88 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub; + +import com.google.api.core.BetaApi; +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 TelcoAutomation service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTelcoAutomationCallableFactory 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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationStub.java new file mode 100644 index 000000000000..fa741f51d018 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/GrpcTelcoAutomationStub.java @@ -0,0 +1,1770 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +import com.google.api.core.BetaApi; +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest; +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 TelcoAutomation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcTelcoAutomationStub extends TelcoAutomationStub { + private static final MethodDescriptor< + ListOrchestrationClustersRequest, ListOrchestrationClustersResponse> + listOrchestrationClustersMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListOrchestrationClusters") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOrchestrationClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOrchestrationClustersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getOrchestrationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetOrchestrationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(GetOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(OrchestrationCluster.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createOrchestrationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateOrchestrationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteOrchestrationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteOrchestrationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEdgeSlmsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListEdgeSlms") + .setRequestMarshaller(ProtoUtils.marshaller(ListEdgeSlmsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEdgeSlmsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getEdgeSlmMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetEdgeSlm") + .setRequestMarshaller(ProtoUtils.marshaller(GetEdgeSlmRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EdgeSlm.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createEdgeSlmMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateEdgeSlm") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEdgeSlmRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteEdgeSlmMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteEdgeSlm") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteEdgeSlmRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetBlueprint") + .setRequestMarshaller(ProtoUtils.marshaller(GetBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteBlueprintRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteBlueprintRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteBlueprintRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listBlueprintsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListBlueprints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBlueprintsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBlueprintsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + approveBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApproveBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(ApproveBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + proposeBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ProposeBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(ProposeBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rejectBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RejectBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(RejectBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse> + listBlueprintRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListBlueprintRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBlueprintRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBlueprintRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse> + searchBlueprintRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/SearchBlueprintRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchBlueprintRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchBlueprintRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse> + searchDeploymentRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/SearchDeploymentRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchDeploymentRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchDeploymentRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DiscardBlueprintChanges") + .setRequestMarshaller( + ProtoUtils.marshaller(DiscardBlueprintChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DiscardBlueprintChangesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listPublicBlueprintsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListPublicBlueprints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPublicBlueprintsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPublicBlueprintsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPublicBlueprintMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetPublicBlueprint") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPublicBlueprintRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PublicBlueprint.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + removeDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RemoveDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDeploymentRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteDeploymentRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDeploymentRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDeploymentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse> + listDeploymentRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListDeploymentRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DiscardDeploymentChanges") + .setRequestMarshaller( + ProtoUtils.marshaller(DiscardDeploymentChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DiscardDeploymentChangesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + applyDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApplyDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(ApplyDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ComputeDeploymentStatus") + .setRequestMarshaller( + ProtoUtils.marshaller(ComputeDeploymentStatusRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ComputeDeploymentStatusResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rollbackDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RollbackDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(RollbackDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getHydratedDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetHydratedDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse> + listHydratedDeploymentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListHydratedDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListHydratedDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListHydratedDeploymentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateHydratedDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateHydratedDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + applyHydratedDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApplyHydratedDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(ApplyHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable + listOrchestrationClustersCallable; + private final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable; + private final UnaryCallable + getOrchestrationClusterCallable; + private final UnaryCallable + createOrchestrationClusterCallable; + private final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable; + private final UnaryCallable + deleteOrchestrationClusterCallable; + private final OperationCallable + deleteOrchestrationClusterOperationCallable; + private final UnaryCallable listEdgeSlmsCallable; + private final UnaryCallable + listEdgeSlmsPagedCallable; + private final UnaryCallable getEdgeSlmCallable; + private final UnaryCallable createEdgeSlmCallable; + private final OperationCallable + createEdgeSlmOperationCallable; + private final UnaryCallable deleteEdgeSlmCallable; + private final OperationCallable + deleteEdgeSlmOperationCallable; + private final UnaryCallable createBlueprintCallable; + private final UnaryCallable updateBlueprintCallable; + private final UnaryCallable getBlueprintCallable; + private final UnaryCallable deleteBlueprintCallable; + private final UnaryCallable + deleteBlueprintRevisionCallable; + private final UnaryCallable listBlueprintsCallable; + private final UnaryCallable + listBlueprintsPagedCallable; + private final UnaryCallable approveBlueprintCallable; + private final UnaryCallable proposeBlueprintCallable; + private final UnaryCallable rejectBlueprintCallable; + private final UnaryCallable + listBlueprintRevisionsCallable; + private final UnaryCallable + listBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchBlueprintRevisionsCallable; + private final UnaryCallable< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchDeploymentRevisionsCallable; + private final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardBlueprintChangesCallable; + private final UnaryCallable + listPublicBlueprintsCallable; + private final UnaryCallable + listPublicBlueprintsPagedCallable; + private final UnaryCallable + getPublicBlueprintCallable; + private final UnaryCallable createDeploymentCallable; + private final UnaryCallable updateDeploymentCallable; + private final UnaryCallable getDeploymentCallable; + private final UnaryCallable deleteDeploymentCallable; + private final UnaryCallable removeDeploymentCallable; + private final UnaryCallable + deleteDeploymentRevisionCallable; + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable + listDeploymentRevisionsCallable; + private final UnaryCallable + listDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardDeploymentChangesCallable; + private final UnaryCallable applyDeploymentCallable; + private final UnaryCallable + computeDeploymentStatusCallable; + private final UnaryCallable rollbackDeploymentCallable; + private final UnaryCallable + getHydratedDeploymentCallable; + private final UnaryCallable + listHydratedDeploymentsCallable; + private final UnaryCallable + listHydratedDeploymentsPagedCallable; + private final UnaryCallable + updateHydratedDeploymentCallable; + private final UnaryCallable + applyHydratedDeploymentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTelcoAutomationStub create(TelcoAutomationStubSettings settings) + throws IOException { + return new GrpcTelcoAutomationStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTelcoAutomationStub create(ClientContext clientContext) + throws IOException { + return new GrpcTelcoAutomationStub( + TelcoAutomationStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTelcoAutomationStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTelcoAutomationStub( + TelcoAutomationStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTelcoAutomationStub, 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 GrpcTelcoAutomationStub( + TelcoAutomationStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcTelcoAutomationCallableFactory()); + } + + /** + * Constructs an instance of GrpcTelcoAutomationStub, 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 GrpcTelcoAutomationStub( + TelcoAutomationStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listOrchestrationClustersTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listOrchestrationClustersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getOrchestrationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOrchestrationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createOrchestrationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOrchestrationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteOrchestrationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOrchestrationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listEdgeSlmsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEdgeSlmsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getEdgeSlmTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEdgeSlmMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createEdgeSlmTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEdgeSlmMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteEdgeSlmTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteEdgeSlmMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("blueprint.name", String.valueOf(request.getBlueprint().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteBlueprintRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBlueprintRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listBlueprintsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBlueprintsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings approveBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(approveBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings proposeBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(proposeBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings rejectBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rejectBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listBlueprintRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listBlueprintRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchBlueprintRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchBlueprintRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchDeploymentRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchDeploymentRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + discardBlueprintChangesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(discardBlueprintChangesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPublicBlueprintsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPublicBlueprintsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getPublicBlueprintTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPublicBlueprintMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("deployment.name", String.valueOf(request.getDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings removeDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteDeploymentRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDeploymentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDeploymentRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listDeploymentRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + discardDeploymentChangesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(discardDeploymentChangesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings applyDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(applyDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + computeDeploymentStatusTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(computeDeploymentStatusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings rollbackDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getHydratedDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getHydratedDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listHydratedDeploymentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listHydratedDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateHydratedDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateHydratedDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "hydrated_deployment.name", + String.valueOf(request.getHydratedDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + applyHydratedDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(applyHydratedDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listOrchestrationClustersCallable = + callableFactory.createUnaryCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.listOrchestrationClustersPagedCallable = + callableFactory.createPagedCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.getOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + getOrchestrationClusterTransportSettings, + settings.getOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterOperationSettings(), + clientContext, + operationsStub); + this.deleteOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterSettings(), + clientContext); + this.deleteOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterOperationSettings(), + clientContext, + operationsStub); + this.listEdgeSlmsCallable = + callableFactory.createUnaryCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.listEdgeSlmsPagedCallable = + callableFactory.createPagedCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.getEdgeSlmCallable = + callableFactory.createUnaryCallable( + getEdgeSlmTransportSettings, settings.getEdgeSlmSettings(), clientContext); + this.createEdgeSlmCallable = + callableFactory.createUnaryCallable( + createEdgeSlmTransportSettings, settings.createEdgeSlmSettings(), clientContext); + this.createEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + createEdgeSlmTransportSettings, + settings.createEdgeSlmOperationSettings(), + clientContext, + operationsStub); + this.deleteEdgeSlmCallable = + callableFactory.createUnaryCallable( + deleteEdgeSlmTransportSettings, settings.deleteEdgeSlmSettings(), clientContext); + this.deleteEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + deleteEdgeSlmTransportSettings, + settings.deleteEdgeSlmOperationSettings(), + clientContext, + operationsStub); + this.createBlueprintCallable = + callableFactory.createUnaryCallable( + createBlueprintTransportSettings, settings.createBlueprintSettings(), clientContext); + this.updateBlueprintCallable = + callableFactory.createUnaryCallable( + updateBlueprintTransportSettings, settings.updateBlueprintSettings(), clientContext); + this.getBlueprintCallable = + callableFactory.createUnaryCallable( + getBlueprintTransportSettings, settings.getBlueprintSettings(), clientContext); + this.deleteBlueprintCallable = + callableFactory.createUnaryCallable( + deleteBlueprintTransportSettings, settings.deleteBlueprintSettings(), clientContext); + this.deleteBlueprintRevisionCallable = + callableFactory.createUnaryCallable( + deleteBlueprintRevisionTransportSettings, + settings.deleteBlueprintRevisionSettings(), + clientContext); + this.listBlueprintsCallable = + callableFactory.createUnaryCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.listBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.approveBlueprintCallable = + callableFactory.createUnaryCallable( + approveBlueprintTransportSettings, settings.approveBlueprintSettings(), clientContext); + this.proposeBlueprintCallable = + callableFactory.createUnaryCallable( + proposeBlueprintTransportSettings, settings.proposeBlueprintSettings(), clientContext); + this.rejectBlueprintCallable = + callableFactory.createUnaryCallable( + rejectBlueprintTransportSettings, settings.rejectBlueprintSettings(), clientContext); + this.listBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.listBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.discardBlueprintChangesCallable = + callableFactory.createUnaryCallable( + discardBlueprintChangesTransportSettings, + settings.discardBlueprintChangesSettings(), + clientContext); + this.listPublicBlueprintsCallable = + callableFactory.createUnaryCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.listPublicBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.getPublicBlueprintCallable = + callableFactory.createUnaryCallable( + getPublicBlueprintTransportSettings, + settings.getPublicBlueprintSettings(), + clientContext); + this.createDeploymentCallable = + callableFactory.createUnaryCallable( + createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext); + this.updateDeploymentCallable = + callableFactory.createUnaryCallable( + updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext); + this.getDeploymentCallable = + callableFactory.createUnaryCallable( + getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext); + this.deleteDeploymentCallable = + callableFactory.createUnaryCallable( + deleteDeploymentTransportSettings, settings.deleteDeploymentSettings(), clientContext); + this.removeDeploymentCallable = + callableFactory.createUnaryCallable( + removeDeploymentTransportSettings, settings.removeDeploymentSettings(), clientContext); + this.deleteDeploymentRevisionCallable = + callableFactory.createUnaryCallable( + deleteDeploymentRevisionTransportSettings, + settings.deleteDeploymentRevisionSettings(), + clientContext); + this.listDeploymentsCallable = + callableFactory.createUnaryCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.listDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.discardDeploymentChangesCallable = + callableFactory.createUnaryCallable( + discardDeploymentChangesTransportSettings, + settings.discardDeploymentChangesSettings(), + clientContext); + this.applyDeploymentCallable = + callableFactory.createUnaryCallable( + applyDeploymentTransportSettings, settings.applyDeploymentSettings(), clientContext); + this.computeDeploymentStatusCallable = + callableFactory.createUnaryCallable( + computeDeploymentStatusTransportSettings, + settings.computeDeploymentStatusSettings(), + clientContext); + this.rollbackDeploymentCallable = + callableFactory.createUnaryCallable( + rollbackDeploymentTransportSettings, + settings.rollbackDeploymentSettings(), + clientContext); + this.getHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + getHydratedDeploymentTransportSettings, + settings.getHydratedDeploymentSettings(), + clientContext); + this.listHydratedDeploymentsCallable = + callableFactory.createUnaryCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.listHydratedDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.updateHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + updateHydratedDeploymentTransportSettings, + settings.updateHydratedDeploymentSettings(), + clientContext); + this.applyHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + applyHydratedDeploymentTransportSettings, + settings.applyHydratedDeploymentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listOrchestrationClustersCallable() { + return listOrchestrationClustersCallable; + } + + @Override + public UnaryCallable + listOrchestrationClustersPagedCallable() { + return listOrchestrationClustersPagedCallable; + } + + @Override + public UnaryCallable + getOrchestrationClusterCallable() { + return getOrchestrationClusterCallable; + } + + @Override + public UnaryCallable + createOrchestrationClusterCallable() { + return createOrchestrationClusterCallable; + } + + @Override + public OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return createOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable + deleteOrchestrationClusterCallable() { + return deleteOrchestrationClusterCallable; + } + + @Override + public OperationCallable + deleteOrchestrationClusterOperationCallable() { + return deleteOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable listEdgeSlmsCallable() { + return listEdgeSlmsCallable; + } + + @Override + public UnaryCallable listEdgeSlmsPagedCallable() { + return listEdgeSlmsPagedCallable; + } + + @Override + public UnaryCallable getEdgeSlmCallable() { + return getEdgeSlmCallable; + } + + @Override + public UnaryCallable createEdgeSlmCallable() { + return createEdgeSlmCallable; + } + + @Override + public OperationCallable + createEdgeSlmOperationCallable() { + return createEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable deleteEdgeSlmCallable() { + return deleteEdgeSlmCallable; + } + + @Override + public OperationCallable + deleteEdgeSlmOperationCallable() { + return deleteEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable createBlueprintCallable() { + return createBlueprintCallable; + } + + @Override + public UnaryCallable updateBlueprintCallable() { + return updateBlueprintCallable; + } + + @Override + public UnaryCallable getBlueprintCallable() { + return getBlueprintCallable; + } + + @Override + public UnaryCallable deleteBlueprintCallable() { + return deleteBlueprintCallable; + } + + @Override + public UnaryCallable + deleteBlueprintRevisionCallable() { + return deleteBlueprintRevisionCallable; + } + + @Override + public UnaryCallable listBlueprintsCallable() { + return listBlueprintsCallable; + } + + @Override + public UnaryCallable + listBlueprintsPagedCallable() { + return listBlueprintsPagedCallable; + } + + @Override + public UnaryCallable approveBlueprintCallable() { + return approveBlueprintCallable; + } + + @Override + public UnaryCallable proposeBlueprintCallable() { + return proposeBlueprintCallable; + } + + @Override + public UnaryCallable rejectBlueprintCallable() { + return rejectBlueprintCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsCallable() { + return listBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsPagedCallable() { + return listBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsCallable() { + return searchBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsPagedCallable() { + return searchBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsCallable() { + return searchDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsPagedCallable() { + return searchDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardBlueprintChangesCallable() { + return discardBlueprintChangesCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsCallable() { + return listPublicBlueprintsCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsPagedCallable() { + return listPublicBlueprintsPagedCallable; + } + + @Override + public UnaryCallable getPublicBlueprintCallable() { + return getPublicBlueprintCallable; + } + + @Override + public UnaryCallable createDeploymentCallable() { + return createDeploymentCallable; + } + + @Override + public UnaryCallable updateDeploymentCallable() { + return updateDeploymentCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @Override + public UnaryCallable deleteDeploymentCallable() { + return deleteDeploymentCallable; + } + + @Override + public UnaryCallable removeDeploymentCallable() { + return removeDeploymentCallable; + } + + @Override + public UnaryCallable + deleteDeploymentRevisionCallable() { + return deleteDeploymentRevisionCallable; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsCallable() { + return listDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsPagedCallable() { + return listDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardDeploymentChangesCallable() { + return discardDeploymentChangesCallable; + } + + @Override + public UnaryCallable applyDeploymentCallable() { + return applyDeploymentCallable; + } + + @Override + public UnaryCallable + computeDeploymentStatusCallable() { + return computeDeploymentStatusCallable; + } + + @Override + public UnaryCallable rollbackDeploymentCallable() { + return rollbackDeploymentCallable; + } + + @Override + public UnaryCallable + getHydratedDeploymentCallable() { + return getHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsCallable() { + return listHydratedDeploymentsCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsPagedCallable() { + return listHydratedDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + updateHydratedDeploymentCallable() { + return updateHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + applyHydratedDeploymentCallable() { + return applyHydratedDeploymentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationCallableFactory.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationCallableFactory.java new file mode 100644 index 000000000000..ea1aa6e44b60 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TelcoAutomation service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTelcoAutomationCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationStub.java new file mode 100644 index 000000000000..6ab64354e5c7 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/HttpJsonTelcoAutomationStub.java @@ -0,0 +1,2997 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TelcoAutomation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTelcoAutomationStub extends TelcoAutomationStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(EdgeSlm.getDescriptor()) + .add(OrchestrationCluster.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListOrchestrationClustersRequest, ListOrchestrationClustersResponse> + listOrchestrationClustersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListOrchestrationClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*}/orchestrationClusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOrchestrationClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOrchestrationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetOrchestrationCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrchestrationCluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createOrchestrationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateOrchestrationCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*}/orchestrationClusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "orchestrationClusterId", + request.getOrchestrationClusterId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "orchestrationCluster", + request.getOrchestrationCluster(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateOrchestrationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteOrchestrationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteOrchestrationCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteOrchestrationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listEdgeSlmsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListEdgeSlms") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*}/edgeSlms", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEdgeSlmsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getEdgeSlmMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetEdgeSlm") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/edgeSlms/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EdgeSlm.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createEdgeSlmMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateEdgeSlm") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*}/edgeSlms", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "edgeSlmId", request.getEdgeSlmId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("edgeSlm", request.getEdgeSlm(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateEdgeSlmRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteEdgeSlmMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteEdgeSlm") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/edgeSlms/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteEdgeSlmRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "blueprintId", request.getBlueprintId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("blueprint", request.getBlueprint(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateBlueprint") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{blueprint.name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "blueprint.name", request.getBlueprint().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("blueprint", request.getBlueprint(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetBlueprint") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteBlueprint") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteBlueprintRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteBlueprintRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:deleteRevision", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBlueprintsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListBlueprints") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBlueprintsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + approveBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApproveBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:approve", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + proposeBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ProposeBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:propose", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + rejectBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RejectBlueprint") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:reject", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Blueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse> + listBlueprintRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListBlueprintRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:listRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBlueprintRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse> + searchBlueprintRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/SearchBlueprintRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints:searchRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchBlueprintRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse> + searchDeploymentRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/SearchDeploymentRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments:searchRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchDeploymentRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DiscardBlueprintChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:discard", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DiscardBlueprintChangesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse> + listPublicBlueprintsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListPublicBlueprints") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*}/publicBlueprints", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPublicBlueprintsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPublicBlueprintMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetPublicBlueprint") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/publicBlueprints/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PublicBlueprint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "deploymentId", request.getDeploymentId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deployment", request.getDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateDeployment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{deployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "deployment.name", request.getDeployment().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deployment", request.getDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetDeployment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteDeployment") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + removeDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RemoveDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:remove", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDeploymentRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteDeploymentRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:deleteRevision", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDeploymentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListDeployments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeploymentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse> + listDeploymentRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListDeploymentRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:listRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeploymentRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DiscardDeploymentChanges") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:discard", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DiscardDeploymentChangesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + applyDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApplyDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:apply", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ComputeDeploymentStatus") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:computeDeploymentStatus", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ComputeDeploymentStatusResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + rollbackDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RollbackDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:rollback", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getHydratedDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetHydratedDeployment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HydratedDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse> + listHydratedDeploymentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListHydratedDeployments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*/deployments/*}/hydratedDeployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListHydratedDeploymentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateHydratedDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateHydratedDeployment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{hydratedDeployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "hydratedDeployment.name", + request.getHydratedDeployment().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "hydratedDeployment", request.getHydratedDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HydratedDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + applyHydratedDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApplyHydratedDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}:apply", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HydratedDeployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listOrchestrationClustersCallable; + private final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable; + private final UnaryCallable + getOrchestrationClusterCallable; + private final UnaryCallable + createOrchestrationClusterCallable; + private final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable; + private final UnaryCallable + deleteOrchestrationClusterCallable; + private final OperationCallable + deleteOrchestrationClusterOperationCallable; + private final UnaryCallable listEdgeSlmsCallable; + private final UnaryCallable + listEdgeSlmsPagedCallable; + private final UnaryCallable getEdgeSlmCallable; + private final UnaryCallable createEdgeSlmCallable; + private final OperationCallable + createEdgeSlmOperationCallable; + private final UnaryCallable deleteEdgeSlmCallable; + private final OperationCallable + deleteEdgeSlmOperationCallable; + private final UnaryCallable createBlueprintCallable; + private final UnaryCallable updateBlueprintCallable; + private final UnaryCallable getBlueprintCallable; + private final UnaryCallable deleteBlueprintCallable; + private final UnaryCallable + deleteBlueprintRevisionCallable; + private final UnaryCallable listBlueprintsCallable; + private final UnaryCallable + listBlueprintsPagedCallable; + private final UnaryCallable approveBlueprintCallable; + private final UnaryCallable proposeBlueprintCallable; + private final UnaryCallable rejectBlueprintCallable; + private final UnaryCallable + listBlueprintRevisionsCallable; + private final UnaryCallable + listBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchBlueprintRevisionsCallable; + private final UnaryCallable< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsPagedCallable; + private final UnaryCallable + searchDeploymentRevisionsCallable; + private final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardBlueprintChangesCallable; + private final UnaryCallable + listPublicBlueprintsCallable; + private final UnaryCallable + listPublicBlueprintsPagedCallable; + private final UnaryCallable + getPublicBlueprintCallable; + private final UnaryCallable createDeploymentCallable; + private final UnaryCallable updateDeploymentCallable; + private final UnaryCallable getDeploymentCallable; + private final UnaryCallable deleteDeploymentCallable; + private final UnaryCallable removeDeploymentCallable; + private final UnaryCallable + deleteDeploymentRevisionCallable; + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable + listDeploymentRevisionsCallable; + private final UnaryCallable + listDeploymentRevisionsPagedCallable; + private final UnaryCallable + discardDeploymentChangesCallable; + private final UnaryCallable applyDeploymentCallable; + private final UnaryCallable + computeDeploymentStatusCallable; + private final UnaryCallable rollbackDeploymentCallable; + private final UnaryCallable + getHydratedDeploymentCallable; + private final UnaryCallable + listHydratedDeploymentsCallable; + private final UnaryCallable + listHydratedDeploymentsPagedCallable; + private final UnaryCallable + updateHydratedDeploymentCallable; + private final UnaryCallable + applyHydratedDeploymentCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTelcoAutomationStub create(TelcoAutomationStubSettings settings) + throws IOException { + return new HttpJsonTelcoAutomationStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTelcoAutomationStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTelcoAutomationStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTelcoAutomationStub, 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 HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTelcoAutomationCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTelcoAutomationStub, 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 HttpJsonTelcoAutomationStub( + TelcoAutomationStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1alpha1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1alpha1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1alpha1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1alpha1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings + listOrchestrationClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listOrchestrationClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getOrchestrationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrchestrationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createOrchestrationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createOrchestrationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteOrchestrationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteOrchestrationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listEdgeSlmsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEdgeSlmsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getEdgeSlmTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getEdgeSlmMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createEdgeSlmTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createEdgeSlmMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteEdgeSlmTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteEdgeSlmMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("blueprint.name", String.valueOf(request.getBlueprint().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteBlueprintRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBlueprintRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBlueprintsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBlueprintsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings approveBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(approveBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings proposeBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(proposeBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings rejectBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(rejectBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listBlueprintRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBlueprintRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + searchBlueprintRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchBlueprintRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + searchDeploymentRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchDeploymentRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + discardBlueprintChangesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(discardBlueprintChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listPublicBlueprintsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listPublicBlueprintsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getPublicBlueprintTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPublicBlueprintMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("deployment.name", String.valueOf(request.getDeployment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings removeDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteDeploymentRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeploymentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeploymentRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeploymentRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + discardDeploymentChangesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(discardDeploymentChangesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings applyDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(applyDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + computeDeploymentStatusTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(computeDeploymentStatusMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + rollbackDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(rollbackDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getHydratedDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getHydratedDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listHydratedDeploymentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listHydratedDeploymentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateHydratedDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateHydratedDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "hydrated_deployment.name", + String.valueOf(request.getHydratedDeployment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + applyHydratedDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(applyHydratedDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listOrchestrationClustersCallable = + callableFactory.createUnaryCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.listOrchestrationClustersPagedCallable = + callableFactory.createPagedCallable( + listOrchestrationClustersTransportSettings, + settings.listOrchestrationClustersSettings(), + clientContext); + this.getOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + getOrchestrationClusterTransportSettings, + settings.getOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterSettings(), + clientContext); + this.createOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + createOrchestrationClusterTransportSettings, + settings.createOrchestrationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteOrchestrationClusterCallable = + callableFactory.createUnaryCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterSettings(), + clientContext); + this.deleteOrchestrationClusterOperationCallable = + callableFactory.createOperationCallable( + deleteOrchestrationClusterTransportSettings, + settings.deleteOrchestrationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listEdgeSlmsCallable = + callableFactory.createUnaryCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.listEdgeSlmsPagedCallable = + callableFactory.createPagedCallable( + listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext); + this.getEdgeSlmCallable = + callableFactory.createUnaryCallable( + getEdgeSlmTransportSettings, settings.getEdgeSlmSettings(), clientContext); + this.createEdgeSlmCallable = + callableFactory.createUnaryCallable( + createEdgeSlmTransportSettings, settings.createEdgeSlmSettings(), clientContext); + this.createEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + createEdgeSlmTransportSettings, + settings.createEdgeSlmOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteEdgeSlmCallable = + callableFactory.createUnaryCallable( + deleteEdgeSlmTransportSettings, settings.deleteEdgeSlmSettings(), clientContext); + this.deleteEdgeSlmOperationCallable = + callableFactory.createOperationCallable( + deleteEdgeSlmTransportSettings, + settings.deleteEdgeSlmOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createBlueprintCallable = + callableFactory.createUnaryCallable( + createBlueprintTransportSettings, settings.createBlueprintSettings(), clientContext); + this.updateBlueprintCallable = + callableFactory.createUnaryCallable( + updateBlueprintTransportSettings, settings.updateBlueprintSettings(), clientContext); + this.getBlueprintCallable = + callableFactory.createUnaryCallable( + getBlueprintTransportSettings, settings.getBlueprintSettings(), clientContext); + this.deleteBlueprintCallable = + callableFactory.createUnaryCallable( + deleteBlueprintTransportSettings, settings.deleteBlueprintSettings(), clientContext); + this.deleteBlueprintRevisionCallable = + callableFactory.createUnaryCallable( + deleteBlueprintRevisionTransportSettings, + settings.deleteBlueprintRevisionSettings(), + clientContext); + this.listBlueprintsCallable = + callableFactory.createUnaryCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.listBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext); + this.approveBlueprintCallable = + callableFactory.createUnaryCallable( + approveBlueprintTransportSettings, settings.approveBlueprintSettings(), clientContext); + this.proposeBlueprintCallable = + callableFactory.createUnaryCallable( + proposeBlueprintTransportSettings, settings.proposeBlueprintSettings(), clientContext); + this.rejectBlueprintCallable = + callableFactory.createUnaryCallable( + rejectBlueprintTransportSettings, settings.rejectBlueprintSettings(), clientContext); + this.listBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.listBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + listBlueprintRevisionsTransportSettings, + settings.listBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsCallable = + callableFactory.createUnaryCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchBlueprintRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchBlueprintRevisionsTransportSettings, + settings.searchBlueprintRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.searchDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + searchDeploymentRevisionsTransportSettings, + settings.searchDeploymentRevisionsSettings(), + clientContext); + this.discardBlueprintChangesCallable = + callableFactory.createUnaryCallable( + discardBlueprintChangesTransportSettings, + settings.discardBlueprintChangesSettings(), + clientContext); + this.listPublicBlueprintsCallable = + callableFactory.createUnaryCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.listPublicBlueprintsPagedCallable = + callableFactory.createPagedCallable( + listPublicBlueprintsTransportSettings, + settings.listPublicBlueprintsSettings(), + clientContext); + this.getPublicBlueprintCallable = + callableFactory.createUnaryCallable( + getPublicBlueprintTransportSettings, + settings.getPublicBlueprintSettings(), + clientContext); + this.createDeploymentCallable = + callableFactory.createUnaryCallable( + createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext); + this.updateDeploymentCallable = + callableFactory.createUnaryCallable( + updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext); + this.getDeploymentCallable = + callableFactory.createUnaryCallable( + getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext); + this.deleteDeploymentCallable = + callableFactory.createUnaryCallable( + deleteDeploymentTransportSettings, settings.deleteDeploymentSettings(), clientContext); + this.removeDeploymentCallable = + callableFactory.createUnaryCallable( + removeDeploymentTransportSettings, settings.removeDeploymentSettings(), clientContext); + this.deleteDeploymentRevisionCallable = + callableFactory.createUnaryCallable( + deleteDeploymentRevisionTransportSettings, + settings.deleteDeploymentRevisionSettings(), + clientContext); + this.listDeploymentsCallable = + callableFactory.createUnaryCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentRevisionsCallable = + callableFactory.createUnaryCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.listDeploymentRevisionsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentRevisionsTransportSettings, + settings.listDeploymentRevisionsSettings(), + clientContext); + this.discardDeploymentChangesCallable = + callableFactory.createUnaryCallable( + discardDeploymentChangesTransportSettings, + settings.discardDeploymentChangesSettings(), + clientContext); + this.applyDeploymentCallable = + callableFactory.createUnaryCallable( + applyDeploymentTransportSettings, settings.applyDeploymentSettings(), clientContext); + this.computeDeploymentStatusCallable = + callableFactory.createUnaryCallable( + computeDeploymentStatusTransportSettings, + settings.computeDeploymentStatusSettings(), + clientContext); + this.rollbackDeploymentCallable = + callableFactory.createUnaryCallable( + rollbackDeploymentTransportSettings, + settings.rollbackDeploymentSettings(), + clientContext); + this.getHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + getHydratedDeploymentTransportSettings, + settings.getHydratedDeploymentSettings(), + clientContext); + this.listHydratedDeploymentsCallable = + callableFactory.createUnaryCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.listHydratedDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listHydratedDeploymentsTransportSettings, + settings.listHydratedDeploymentsSettings(), + clientContext); + this.updateHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + updateHydratedDeploymentTransportSettings, + settings.updateHydratedDeploymentSettings(), + clientContext); + this.applyHydratedDeploymentCallable = + callableFactory.createUnaryCallable( + applyHydratedDeploymentTransportSettings, + settings.applyHydratedDeploymentSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listOrchestrationClustersMethodDescriptor); + methodDescriptors.add(getOrchestrationClusterMethodDescriptor); + methodDescriptors.add(createOrchestrationClusterMethodDescriptor); + methodDescriptors.add(deleteOrchestrationClusterMethodDescriptor); + methodDescriptors.add(listEdgeSlmsMethodDescriptor); + methodDescriptors.add(getEdgeSlmMethodDescriptor); + methodDescriptors.add(createEdgeSlmMethodDescriptor); + methodDescriptors.add(deleteEdgeSlmMethodDescriptor); + methodDescriptors.add(createBlueprintMethodDescriptor); + methodDescriptors.add(updateBlueprintMethodDescriptor); + methodDescriptors.add(getBlueprintMethodDescriptor); + methodDescriptors.add(deleteBlueprintMethodDescriptor); + methodDescriptors.add(deleteBlueprintRevisionMethodDescriptor); + methodDescriptors.add(listBlueprintsMethodDescriptor); + methodDescriptors.add(approveBlueprintMethodDescriptor); + methodDescriptors.add(proposeBlueprintMethodDescriptor); + methodDescriptors.add(rejectBlueprintMethodDescriptor); + methodDescriptors.add(listBlueprintRevisionsMethodDescriptor); + methodDescriptors.add(searchBlueprintRevisionsMethodDescriptor); + methodDescriptors.add(searchDeploymentRevisionsMethodDescriptor); + methodDescriptors.add(discardBlueprintChangesMethodDescriptor); + methodDescriptors.add(listPublicBlueprintsMethodDescriptor); + methodDescriptors.add(getPublicBlueprintMethodDescriptor); + methodDescriptors.add(createDeploymentMethodDescriptor); + methodDescriptors.add(updateDeploymentMethodDescriptor); + methodDescriptors.add(getDeploymentMethodDescriptor); + methodDescriptors.add(deleteDeploymentMethodDescriptor); + methodDescriptors.add(removeDeploymentMethodDescriptor); + methodDescriptors.add(deleteDeploymentRevisionMethodDescriptor); + methodDescriptors.add(listDeploymentsMethodDescriptor); + methodDescriptors.add(listDeploymentRevisionsMethodDescriptor); + methodDescriptors.add(discardDeploymentChangesMethodDescriptor); + methodDescriptors.add(applyDeploymentMethodDescriptor); + methodDescriptors.add(computeDeploymentStatusMethodDescriptor); + methodDescriptors.add(rollbackDeploymentMethodDescriptor); + methodDescriptors.add(getHydratedDeploymentMethodDescriptor); + methodDescriptors.add(listHydratedDeploymentsMethodDescriptor); + methodDescriptors.add(updateHydratedDeploymentMethodDescriptor); + methodDescriptors.add(applyHydratedDeploymentMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listOrchestrationClustersCallable() { + return listOrchestrationClustersCallable; + } + + @Override + public UnaryCallable + listOrchestrationClustersPagedCallable() { + return listOrchestrationClustersPagedCallable; + } + + @Override + public UnaryCallable + getOrchestrationClusterCallable() { + return getOrchestrationClusterCallable; + } + + @Override + public UnaryCallable + createOrchestrationClusterCallable() { + return createOrchestrationClusterCallable; + } + + @Override + public OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return createOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable + deleteOrchestrationClusterCallable() { + return deleteOrchestrationClusterCallable; + } + + @Override + public OperationCallable + deleteOrchestrationClusterOperationCallable() { + return deleteOrchestrationClusterOperationCallable; + } + + @Override + public UnaryCallable listEdgeSlmsCallable() { + return listEdgeSlmsCallable; + } + + @Override + public UnaryCallable listEdgeSlmsPagedCallable() { + return listEdgeSlmsPagedCallable; + } + + @Override + public UnaryCallable getEdgeSlmCallable() { + return getEdgeSlmCallable; + } + + @Override + public UnaryCallable createEdgeSlmCallable() { + return createEdgeSlmCallable; + } + + @Override + public OperationCallable + createEdgeSlmOperationCallable() { + return createEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable deleteEdgeSlmCallable() { + return deleteEdgeSlmCallable; + } + + @Override + public OperationCallable + deleteEdgeSlmOperationCallable() { + return deleteEdgeSlmOperationCallable; + } + + @Override + public UnaryCallable createBlueprintCallable() { + return createBlueprintCallable; + } + + @Override + public UnaryCallable updateBlueprintCallable() { + return updateBlueprintCallable; + } + + @Override + public UnaryCallable getBlueprintCallable() { + return getBlueprintCallable; + } + + @Override + public UnaryCallable deleteBlueprintCallable() { + return deleteBlueprintCallable; + } + + @Override + public UnaryCallable + deleteBlueprintRevisionCallable() { + return deleteBlueprintRevisionCallable; + } + + @Override + public UnaryCallable listBlueprintsCallable() { + return listBlueprintsCallable; + } + + @Override + public UnaryCallable + listBlueprintsPagedCallable() { + return listBlueprintsPagedCallable; + } + + @Override + public UnaryCallable approveBlueprintCallable() { + return approveBlueprintCallable; + } + + @Override + public UnaryCallable proposeBlueprintCallable() { + return proposeBlueprintCallable; + } + + @Override + public UnaryCallable rejectBlueprintCallable() { + return rejectBlueprintCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsCallable() { + return listBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + listBlueprintRevisionsPagedCallable() { + return listBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsCallable() { + return searchBlueprintRevisionsCallable; + } + + @Override + public UnaryCallable + searchBlueprintRevisionsPagedCallable() { + return searchBlueprintRevisionsPagedCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsCallable() { + return searchDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + searchDeploymentRevisionsPagedCallable() { + return searchDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardBlueprintChangesCallable() { + return discardBlueprintChangesCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsCallable() { + return listPublicBlueprintsCallable; + } + + @Override + public UnaryCallable + listPublicBlueprintsPagedCallable() { + return listPublicBlueprintsPagedCallable; + } + + @Override + public UnaryCallable getPublicBlueprintCallable() { + return getPublicBlueprintCallable; + } + + @Override + public UnaryCallable createDeploymentCallable() { + return createDeploymentCallable; + } + + @Override + public UnaryCallable updateDeploymentCallable() { + return updateDeploymentCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @Override + public UnaryCallable deleteDeploymentCallable() { + return deleteDeploymentCallable; + } + + @Override + public UnaryCallable removeDeploymentCallable() { + return removeDeploymentCallable; + } + + @Override + public UnaryCallable + deleteDeploymentRevisionCallable() { + return deleteDeploymentRevisionCallable; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsCallable() { + return listDeploymentRevisionsCallable; + } + + @Override + public UnaryCallable + listDeploymentRevisionsPagedCallable() { + return listDeploymentRevisionsPagedCallable; + } + + @Override + public UnaryCallable + discardDeploymentChangesCallable() { + return discardDeploymentChangesCallable; + } + + @Override + public UnaryCallable applyDeploymentCallable() { + return applyDeploymentCallable; + } + + @Override + public UnaryCallable + computeDeploymentStatusCallable() { + return computeDeploymentStatusCallable; + } + + @Override + public UnaryCallable rollbackDeploymentCallable() { + return rollbackDeploymentCallable; + } + + @Override + public UnaryCallable + getHydratedDeploymentCallable() { + return getHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsCallable() { + return listHydratedDeploymentsCallable; + } + + @Override + public UnaryCallable + listHydratedDeploymentsPagedCallable() { + return listHydratedDeploymentsPagedCallable; + } + + @Override + public UnaryCallable + updateHydratedDeploymentCallable() { + return updateHydratedDeploymentCallable; + } + + @Override + public UnaryCallable + applyHydratedDeploymentCallable() { + return applyHydratedDeploymentCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java new file mode 100644 index 000000000000..8e6ef34d93db --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java @@ -0,0 +1,390 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +import com.google.api.core.BetaApi; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest; +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 TelcoAutomation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class TelcoAutomationStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listOrchestrationClustersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listOrchestrationClustersPagedCallable()"); + } + + public UnaryCallable + listOrchestrationClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listOrchestrationClustersCallable()"); + } + + public UnaryCallable + getOrchestrationClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getOrchestrationClusterCallable()"); + } + + public OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createOrchestrationClusterOperationCallable()"); + } + + public UnaryCallable + createOrchestrationClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: createOrchestrationClusterCallable()"); + } + + public OperationCallable + deleteOrchestrationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteOrchestrationClusterOperationCallable()"); + } + + public UnaryCallable + deleteOrchestrationClusterCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteOrchestrationClusterCallable()"); + } + + public UnaryCallable listEdgeSlmsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEdgeSlmsPagedCallable()"); + } + + public UnaryCallable listEdgeSlmsCallable() { + throw new UnsupportedOperationException("Not implemented: listEdgeSlmsCallable()"); + } + + public UnaryCallable getEdgeSlmCallable() { + throw new UnsupportedOperationException("Not implemented: getEdgeSlmCallable()"); + } + + public OperationCallable + createEdgeSlmOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createEdgeSlmOperationCallable()"); + } + + public UnaryCallable createEdgeSlmCallable() { + throw new UnsupportedOperationException("Not implemented: createEdgeSlmCallable()"); + } + + public OperationCallable + deleteEdgeSlmOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEdgeSlmOperationCallable()"); + } + + public UnaryCallable deleteEdgeSlmCallable() { + throw new UnsupportedOperationException("Not implemented: deleteEdgeSlmCallable()"); + } + + public UnaryCallable createBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: createBlueprintCallable()"); + } + + public UnaryCallable updateBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: updateBlueprintCallable()"); + } + + public UnaryCallable getBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: getBlueprintCallable()"); + } + + public UnaryCallable deleteBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBlueprintCallable()"); + } + + public UnaryCallable + deleteBlueprintRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBlueprintRevisionCallable()"); + } + + public UnaryCallable + listBlueprintsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBlueprintsPagedCallable()"); + } + + public UnaryCallable listBlueprintsCallable() { + throw new UnsupportedOperationException("Not implemented: listBlueprintsCallable()"); + } + + public UnaryCallable approveBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: approveBlueprintCallable()"); + } + + public UnaryCallable proposeBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: proposeBlueprintCallable()"); + } + + public UnaryCallable rejectBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: rejectBlueprintCallable()"); + } + + public UnaryCallable + listBlueprintRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listBlueprintRevisionsPagedCallable()"); + } + + public UnaryCallable + listBlueprintRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listBlueprintRevisionsCallable()"); + } + + public UnaryCallable + searchBlueprintRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchBlueprintRevisionsPagedCallable()"); + } + + public UnaryCallable + searchBlueprintRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: searchBlueprintRevisionsCallable()"); + } + + public UnaryCallable + searchDeploymentRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchDeploymentRevisionsPagedCallable()"); + } + + public UnaryCallable + searchDeploymentRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: searchDeploymentRevisionsCallable()"); + } + + public UnaryCallable + discardBlueprintChangesCallable() { + throw new UnsupportedOperationException("Not implemented: discardBlueprintChangesCallable()"); + } + + public UnaryCallable + listPublicBlueprintsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPublicBlueprintsPagedCallable()"); + } + + public UnaryCallable + listPublicBlueprintsCallable() { + throw new UnsupportedOperationException("Not implemented: listPublicBlueprintsCallable()"); + } + + public UnaryCallable getPublicBlueprintCallable() { + throw new UnsupportedOperationException("Not implemented: getPublicBlueprintCallable()"); + } + + public UnaryCallable createDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: createDeploymentCallable()"); + } + + public UnaryCallable updateDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateDeploymentCallable()"); + } + + public UnaryCallable getDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getDeploymentCallable()"); + } + + public UnaryCallable deleteDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDeploymentCallable()"); + } + + public UnaryCallable removeDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: removeDeploymentCallable()"); + } + + public UnaryCallable + deleteDeploymentRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDeploymentRevisionCallable()"); + } + + public UnaryCallable + listDeploymentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentsPagedCallable()"); + } + + public UnaryCallable listDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentsCallable()"); + } + + public UnaryCallable + listDeploymentRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDeploymentRevisionsPagedCallable()"); + } + + public UnaryCallable + listDeploymentRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentRevisionsCallable()"); + } + + public UnaryCallable + discardDeploymentChangesCallable() { + throw new UnsupportedOperationException("Not implemented: discardDeploymentChangesCallable()"); + } + + public UnaryCallable applyDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: applyDeploymentCallable()"); + } + + public UnaryCallable + computeDeploymentStatusCallable() { + throw new UnsupportedOperationException("Not implemented: computeDeploymentStatusCallable()"); + } + + public UnaryCallable rollbackDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: rollbackDeploymentCallable()"); + } + + public UnaryCallable + getHydratedDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getHydratedDeploymentCallable()"); + } + + public UnaryCallable + listHydratedDeploymentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listHydratedDeploymentsPagedCallable()"); + } + + public UnaryCallable + listHydratedDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listHydratedDeploymentsCallable()"); + } + + public UnaryCallable + updateHydratedDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateHydratedDeploymentCallable()"); + } + + public UnaryCallable + applyHydratedDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: applyHydratedDeploymentCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java new file mode 100644 index 000000000000..d0a3172c333e --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java @@ -0,0 +1,2424 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest; +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 TelcoAutomationStub}. + * + *

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

    + *
  • The default service address (telcoautomation.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 getOrchestrationCluster 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
+ * TelcoAutomationStubSettings.Builder telcoAutomationSettingsBuilder =
+ *     TelcoAutomationStubSettings.newBuilder();
+ * telcoAutomationSettingsBuilder
+ *     .getOrchestrationClusterSettings()
+ *     .setRetrySettings(
+ *         telcoAutomationSettingsBuilder
+ *             .getOrchestrationClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TelcoAutomationStubSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class TelcoAutomationStubSettings 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< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings; + private final UnaryCallSettings + getOrchestrationClusterSettings; + private final UnaryCallSettings + createOrchestrationClusterSettings; + private final OperationCallSettings< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings; + private final UnaryCallSettings + deleteOrchestrationClusterSettings; + private final OperationCallSettings + deleteOrchestrationClusterOperationSettings; + private final PagedCallSettings< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings; + private final UnaryCallSettings getEdgeSlmSettings; + private final UnaryCallSettings createEdgeSlmSettings; + private final OperationCallSettings + createEdgeSlmOperationSettings; + private final UnaryCallSettings deleteEdgeSlmSettings; + private final OperationCallSettings + deleteEdgeSlmOperationSettings; + private final UnaryCallSettings createBlueprintSettings; + private final UnaryCallSettings updateBlueprintSettings; + private final UnaryCallSettings getBlueprintSettings; + private final UnaryCallSettings deleteBlueprintSettings; + private final UnaryCallSettings + deleteBlueprintRevisionSettings; + private final PagedCallSettings< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings; + private final UnaryCallSettings approveBlueprintSettings; + private final UnaryCallSettings proposeBlueprintSettings; + private final UnaryCallSettings rejectBlueprintSettings; + private final PagedCallSettings< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings; + private final PagedCallSettings< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings; + private final PagedCallSettings< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings; + private final UnaryCallSettings + discardBlueprintChangesSettings; + private final PagedCallSettings< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings; + private final UnaryCallSettings + getPublicBlueprintSettings; + private final UnaryCallSettings createDeploymentSettings; + private final UnaryCallSettings updateDeploymentSettings; + private final UnaryCallSettings getDeploymentSettings; + private final UnaryCallSettings deleteDeploymentSettings; + private final UnaryCallSettings removeDeploymentSettings; + private final UnaryCallSettings + deleteDeploymentRevisionSettings; + private final PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final PagedCallSettings< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings; + private final UnaryCallSettings + discardDeploymentChangesSettings; + private final UnaryCallSettings applyDeploymentSettings; + private final UnaryCallSettings + computeDeploymentStatusSettings; + private final UnaryCallSettings rollbackDeploymentSettings; + private final UnaryCallSettings + getHydratedDeploymentSettings; + private final PagedCallSettings< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings; + private final UnaryCallSettings + updateHydratedDeploymentSettings; + private final UnaryCallSettings + applyHydratedDeploymentSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> + LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOrchestrationClustersRequest injectToken( + ListOrchestrationClustersRequest payload, String token) { + return ListOrchestrationClustersRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListOrchestrationClustersRequest injectPageSize( + ListOrchestrationClustersRequest payload, int pageSize) { + return ListOrchestrationClustersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListOrchestrationClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOrchestrationClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListOrchestrationClustersResponse payload) { + return payload.getOrchestrationClustersList() == null + ? ImmutableList.of() + : payload.getOrchestrationClustersList(); + } + }; + + private static final PagedListDescriptor + LIST_EDGE_SLMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEdgeSlmsRequest injectToken(ListEdgeSlmsRequest payload, String token) { + return ListEdgeSlmsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEdgeSlmsRequest injectPageSize(ListEdgeSlmsRequest payload, int pageSize) { + return ListEdgeSlmsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEdgeSlmsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEdgeSlmsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEdgeSlmsResponse payload) { + return payload.getEdgeSlmsList() == null + ? ImmutableList.of() + : payload.getEdgeSlmsList(); + } + }; + + private static final PagedListDescriptor + LIST_BLUEPRINTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBlueprintsRequest injectToken(ListBlueprintsRequest payload, String token) { + return ListBlueprintsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBlueprintsRequest injectPageSize( + ListBlueprintsRequest payload, int pageSize) { + return ListBlueprintsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBlueprintsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBlueprintsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBlueprintsResponse payload) { + return payload.getBlueprintsList() == null + ? ImmutableList.of() + : payload.getBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse, Blueprint> + LIST_BLUEPRINT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse, Blueprint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBlueprintRevisionsRequest injectToken( + ListBlueprintRevisionsRequest payload, String token) { + return ListBlueprintRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBlueprintRevisionsRequest injectPageSize( + ListBlueprintRevisionsRequest payload, int pageSize) { + return ListBlueprintRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListBlueprintRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBlueprintRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBlueprintRevisionsResponse payload) { + return payload.getBlueprintsList() == null + ? ImmutableList.of() + : payload.getBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> + SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchBlueprintRevisionsRequest injectToken( + SearchBlueprintRevisionsRequest payload, String token) { + return SearchBlueprintRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchBlueprintRevisionsRequest injectPageSize( + SearchBlueprintRevisionsRequest payload, int pageSize) { + return SearchBlueprintRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchBlueprintRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchBlueprintRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchBlueprintRevisionsResponse payload) { + return payload.getBlueprintsList() == null + ? ImmutableList.of() + : payload.getBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> + SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchDeploymentRevisionsRequest injectToken( + SearchDeploymentRevisionsRequest payload, String token) { + return SearchDeploymentRevisionsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchDeploymentRevisionsRequest injectPageSize( + SearchDeploymentRevisionsRequest payload, int pageSize) { + return SearchDeploymentRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchDeploymentRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchDeploymentRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchDeploymentRevisionsResponse payload) { + return payload.getDeploymentsList() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse, PublicBlueprint> + LIST_PUBLIC_BLUEPRINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse, PublicBlueprint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPublicBlueprintsRequest injectToken( + ListPublicBlueprintsRequest payload, String token) { + return ListPublicBlueprintsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPublicBlueprintsRequest injectPageSize( + ListPublicBlueprintsRequest payload, int pageSize) { + return ListPublicBlueprintsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPublicBlueprintsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPublicBlueprintsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListPublicBlueprintsResponse payload) { + return payload.getPublicBlueprintsList() == null + ? ImmutableList.of() + : payload.getPublicBlueprintsList(); + } + }; + + private static final PagedListDescriptor< + ListDeploymentsRequest, ListDeploymentsResponse, Deployment> + LIST_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeploymentsRequest injectToken( + ListDeploymentsRequest payload, String token) { + return ListDeploymentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeploymentsRequest injectPageSize( + ListDeploymentsRequest payload, int pageSize) { + return ListDeploymentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDeploymentsResponse payload) { + return payload.getDeploymentsList() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse, Deployment> + LIST_DEPLOYMENT_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse, Deployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeploymentRevisionsRequest injectToken( + ListDeploymentRevisionsRequest payload, String token) { + return ListDeploymentRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeploymentRevisionsRequest injectPageSize( + ListDeploymentRevisionsRequest payload, int pageSize) { + return ListDeploymentRevisionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDeploymentRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeploymentRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDeploymentRevisionsResponse payload) { + return payload.getDeploymentsList() == null + ? ImmutableList.of() + : payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor< + ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> + LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListHydratedDeploymentsRequest injectToken( + ListHydratedDeploymentsRequest payload, String token) { + return ListHydratedDeploymentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListHydratedDeploymentsRequest injectPageSize( + ListHydratedDeploymentsRequest payload, int pageSize) { + return ListHydratedDeploymentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListHydratedDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListHydratedDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListHydratedDeploymentsResponse payload) { + return payload.getHydratedDeploymentsList() == null + ? ImmutableList.of() + : payload.getHydratedDeploymentsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListOrchestrationClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + OrchestrationCluster> + pageContext = + PageContext.create( + callable, LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_DESC, request, context); + return ListOrchestrationClustersPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + LIST_EDGE_SLMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEdgeSlmsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EDGE_SLMS_PAGE_STR_DESC, request, context); + return ListEdgeSlmsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + LIST_BLUEPRINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBlueprintsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BLUEPRINTS_PAGE_STR_DESC, request, context); + return ListBlueprintsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + LIST_BLUEPRINT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListBlueprintRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_BLUEPRINT_REVISIONS_PAGE_STR_DESC, request, context); + return ListBlueprintRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchBlueprintRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> + pageContext = + PageContext.create( + callable, SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_DESC, request, context); + return SearchBlueprintRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchDeploymentRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + Deployment> + pageContext = + PageContext.create( + callable, SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_DESC, request, context); + return SearchDeploymentRevisionsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + LIST_PUBLIC_BLUEPRINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPublicBlueprintsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPublicBlueprintsRequest, ListPublicBlueprintsResponse, PublicBlueprint> + pageContext = + PageContext.create( + callable, LIST_PUBLIC_BLUEPRINTS_PAGE_STR_DESC, request, context); + return ListPublicBlueprintsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + LIST_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + LIST_DEPLOYMENT_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListDeploymentRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse, Deployment> + pageContext = + PageContext.create( + callable, LIST_DEPLOYMENT_REVISIONS_PAGE_STR_DESC, request, context); + return ListDeploymentRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListHydratedDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + HydratedDeployment> + pageContext = + PageContext.create( + callable, LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListHydratedDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listOrchestrationClusters. */ + public PagedCallSettings< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return listOrchestrationClustersSettings; + } + + /** Returns the object with the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings + getOrchestrationClusterSettings() { + return getOrchestrationClusterSettings; + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings + createOrchestrationClusterSettings() { + return createOrchestrationClusterSettings; + } + + /** Returns the object with the settings used for calls to createOrchestrationCluster. */ + public OperationCallSettings< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return createOrchestrationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings + deleteOrchestrationClusterSettings() { + return deleteOrchestrationClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteOrchestrationCluster. */ + public OperationCallSettings + deleteOrchestrationClusterOperationSettings() { + return deleteOrchestrationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to listEdgeSlms. */ + public PagedCallSettings + listEdgeSlmsSettings() { + return listEdgeSlmsSettings; + } + + /** Returns the object with the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings getEdgeSlmSettings() { + return getEdgeSlmSettings; + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings createEdgeSlmSettings() { + return createEdgeSlmSettings; + } + + /** Returns the object with the settings used for calls to createEdgeSlm. */ + public OperationCallSettings + createEdgeSlmOperationSettings() { + return createEdgeSlmOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings deleteEdgeSlmSettings() { + return deleteEdgeSlmSettings; + } + + /** Returns the object with the settings used for calls to deleteEdgeSlm. */ + public OperationCallSettings + deleteEdgeSlmOperationSettings() { + return deleteEdgeSlmOperationSettings; + } + + /** Returns the object with the settings used for calls to createBlueprint. */ + public UnaryCallSettings createBlueprintSettings() { + return createBlueprintSettings; + } + + /** Returns the object with the settings used for calls to updateBlueprint. */ + public UnaryCallSettings updateBlueprintSettings() { + return updateBlueprintSettings; + } + + /** Returns the object with the settings used for calls to getBlueprint. */ + public UnaryCallSettings getBlueprintSettings() { + return getBlueprintSettings; + } + + /** Returns the object with the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings deleteBlueprintSettings() { + return deleteBlueprintSettings; + } + + /** Returns the object with the settings used for calls to deleteBlueprintRevision. */ + public UnaryCallSettings + deleteBlueprintRevisionSettings() { + return deleteBlueprintRevisionSettings; + } + + /** Returns the object with the settings used for calls to listBlueprints. */ + public PagedCallSettings< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return listBlueprintsSettings; + } + + /** Returns the object with the settings used for calls to approveBlueprint. */ + public UnaryCallSettings approveBlueprintSettings() { + return approveBlueprintSettings; + } + + /** Returns the object with the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings proposeBlueprintSettings() { + return proposeBlueprintSettings; + } + + /** Returns the object with the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings rejectBlueprintSettings() { + return rejectBlueprintSettings; + } + + /** Returns the object with the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return listBlueprintRevisionsSettings; + } + + /** Returns the object with the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return searchBlueprintRevisionsSettings; + } + + /** Returns the object with the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return searchDeploymentRevisionsSettings; + } + + /** Returns the object with the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings + discardBlueprintChangesSettings() { + return discardBlueprintChangesSettings; + } + + /** Returns the object with the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return listPublicBlueprintsSettings; + } + + /** Returns the object with the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings + getPublicBlueprintSettings() { + return getPublicBlueprintSettings; + } + + /** Returns the object with the settings used for calls to createDeployment. */ + public UnaryCallSettings createDeploymentSettings() { + return createDeploymentSettings; + } + + /** Returns the object with the settings used for calls to updateDeployment. */ + public UnaryCallSettings updateDeploymentSettings() { + return updateDeploymentSettings; + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return getDeploymentSettings; + } + + /** Returns the object with the settings used for calls to deleteDeployment. */ + public UnaryCallSettings deleteDeploymentSettings() { + return deleteDeploymentSettings; + } + + /** Returns the object with the settings used for calls to removeDeployment. */ + public UnaryCallSettings removeDeploymentSettings() { + return removeDeploymentSettings; + } + + /** Returns the object with the settings used for calls to deleteDeploymentRevision. */ + public UnaryCallSettings + deleteDeploymentRevisionSettings() { + return deleteDeploymentRevisionSettings; + } + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return listDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return listDeploymentRevisionsSettings; + } + + /** Returns the object with the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings + discardDeploymentChangesSettings() { + return discardDeploymentChangesSettings; + } + + /** Returns the object with the settings used for calls to applyDeployment. */ + public UnaryCallSettings applyDeploymentSettings() { + return applyDeploymentSettings; + } + + /** Returns the object with the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings + computeDeploymentStatusSettings() { + return computeDeploymentStatusSettings; + } + + /** Returns the object with the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings rollbackDeploymentSettings() { + return rollbackDeploymentSettings; + } + + /** Returns the object with the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings + getHydratedDeploymentSettings() { + return getHydratedDeploymentSettings; + } + + /** Returns the object with the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return listHydratedDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings + updateHydratedDeploymentSettings() { + return updateHydratedDeploymentSettings; + } + + /** Returns the object with the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings + applyHydratedDeploymentSettings() { + return applyHydratedDeploymentSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public TelcoAutomationStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTelcoAutomationStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTelcoAutomationStub.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 "telcoautomation.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "telcoautomation.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 gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TelcoAutomationStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TelcoAutomationStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TelcoAutomationStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TelcoAutomationStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listOrchestrationClustersSettings = settingsBuilder.listOrchestrationClustersSettings().build(); + getOrchestrationClusterSettings = settingsBuilder.getOrchestrationClusterSettings().build(); + createOrchestrationClusterSettings = + settingsBuilder.createOrchestrationClusterSettings().build(); + createOrchestrationClusterOperationSettings = + settingsBuilder.createOrchestrationClusterOperationSettings().build(); + deleteOrchestrationClusterSettings = + settingsBuilder.deleteOrchestrationClusterSettings().build(); + deleteOrchestrationClusterOperationSettings = + settingsBuilder.deleteOrchestrationClusterOperationSettings().build(); + listEdgeSlmsSettings = settingsBuilder.listEdgeSlmsSettings().build(); + getEdgeSlmSettings = settingsBuilder.getEdgeSlmSettings().build(); + createEdgeSlmSettings = settingsBuilder.createEdgeSlmSettings().build(); + createEdgeSlmOperationSettings = settingsBuilder.createEdgeSlmOperationSettings().build(); + deleteEdgeSlmSettings = settingsBuilder.deleteEdgeSlmSettings().build(); + deleteEdgeSlmOperationSettings = settingsBuilder.deleteEdgeSlmOperationSettings().build(); + createBlueprintSettings = settingsBuilder.createBlueprintSettings().build(); + updateBlueprintSettings = settingsBuilder.updateBlueprintSettings().build(); + getBlueprintSettings = settingsBuilder.getBlueprintSettings().build(); + deleteBlueprintSettings = settingsBuilder.deleteBlueprintSettings().build(); + deleteBlueprintRevisionSettings = settingsBuilder.deleteBlueprintRevisionSettings().build(); + listBlueprintsSettings = settingsBuilder.listBlueprintsSettings().build(); + approveBlueprintSettings = settingsBuilder.approveBlueprintSettings().build(); + proposeBlueprintSettings = settingsBuilder.proposeBlueprintSettings().build(); + rejectBlueprintSettings = settingsBuilder.rejectBlueprintSettings().build(); + listBlueprintRevisionsSettings = settingsBuilder.listBlueprintRevisionsSettings().build(); + searchBlueprintRevisionsSettings = settingsBuilder.searchBlueprintRevisionsSettings().build(); + searchDeploymentRevisionsSettings = settingsBuilder.searchDeploymentRevisionsSettings().build(); + discardBlueprintChangesSettings = settingsBuilder.discardBlueprintChangesSettings().build(); + listPublicBlueprintsSettings = settingsBuilder.listPublicBlueprintsSettings().build(); + getPublicBlueprintSettings = settingsBuilder.getPublicBlueprintSettings().build(); + createDeploymentSettings = settingsBuilder.createDeploymentSettings().build(); + updateDeploymentSettings = settingsBuilder.updateDeploymentSettings().build(); + getDeploymentSettings = settingsBuilder.getDeploymentSettings().build(); + deleteDeploymentSettings = settingsBuilder.deleteDeploymentSettings().build(); + removeDeploymentSettings = settingsBuilder.removeDeploymentSettings().build(); + deleteDeploymentRevisionSettings = settingsBuilder.deleteDeploymentRevisionSettings().build(); + listDeploymentsSettings = settingsBuilder.listDeploymentsSettings().build(); + listDeploymentRevisionsSettings = settingsBuilder.listDeploymentRevisionsSettings().build(); + discardDeploymentChangesSettings = settingsBuilder.discardDeploymentChangesSettings().build(); + applyDeploymentSettings = settingsBuilder.applyDeploymentSettings().build(); + computeDeploymentStatusSettings = settingsBuilder.computeDeploymentStatusSettings().build(); + rollbackDeploymentSettings = settingsBuilder.rollbackDeploymentSettings().build(); + getHydratedDeploymentSettings = settingsBuilder.getHydratedDeploymentSettings().build(); + listHydratedDeploymentsSettings = settingsBuilder.listHydratedDeploymentsSettings().build(); + updateHydratedDeploymentSettings = settingsBuilder.updateHydratedDeploymentSettings().build(); + applyHydratedDeploymentSettings = settingsBuilder.applyHydratedDeploymentSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for TelcoAutomationStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings; + private final UnaryCallSettings.Builder + getOrchestrationClusterSettings; + private final UnaryCallSettings.Builder + createOrchestrationClusterSettings; + private final OperationCallSettings.Builder< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteOrchestrationClusterSettings; + private final OperationCallSettings.Builder< + DeleteOrchestrationClusterRequest, Empty, OperationMetadata> + deleteOrchestrationClusterOperationSettings; + private final PagedCallSettings.Builder< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings; + private final UnaryCallSettings.Builder getEdgeSlmSettings; + private final UnaryCallSettings.Builder createEdgeSlmSettings; + private final OperationCallSettings.Builder + createEdgeSlmOperationSettings; + private final UnaryCallSettings.Builder deleteEdgeSlmSettings; + private final OperationCallSettings.Builder + deleteEdgeSlmOperationSettings; + private final UnaryCallSettings.Builder + createBlueprintSettings; + private final UnaryCallSettings.Builder + updateBlueprintSettings; + private final UnaryCallSettings.Builder getBlueprintSettings; + private final UnaryCallSettings.Builder deleteBlueprintSettings; + private final UnaryCallSettings.Builder + deleteBlueprintRevisionSettings; + private final PagedCallSettings.Builder< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings; + private final UnaryCallSettings.Builder + approveBlueprintSettings; + private final UnaryCallSettings.Builder + proposeBlueprintSettings; + private final UnaryCallSettings.Builder + rejectBlueprintSettings; + private final PagedCallSettings.Builder< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings; + private final PagedCallSettings.Builder< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings; + private final PagedCallSettings.Builder< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings; + private final UnaryCallSettings.Builder< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesSettings; + private final PagedCallSettings.Builder< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings; + private final UnaryCallSettings.Builder + getPublicBlueprintSettings; + private final UnaryCallSettings.Builder + createDeploymentSettings; + private final UnaryCallSettings.Builder + updateDeploymentSettings; + private final UnaryCallSettings.Builder getDeploymentSettings; + private final UnaryCallSettings.Builder + deleteDeploymentSettings; + private final UnaryCallSettings.Builder + removeDeploymentSettings; + private final UnaryCallSettings.Builder + deleteDeploymentRevisionSettings; + private final PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final PagedCallSettings.Builder< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings; + private final UnaryCallSettings.Builder< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesSettings; + private final UnaryCallSettings.Builder + applyDeploymentSettings; + private final UnaryCallSettings.Builder< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusSettings; + private final UnaryCallSettings.Builder + rollbackDeploymentSettings; + private final UnaryCallSettings.Builder + getHydratedDeploymentSettings; + private final PagedCallSettings.Builder< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings; + private final UnaryCallSettings.Builder + updateHydratedDeploymentSettings; + private final UnaryCallSettings.Builder + applyHydratedDeploymentSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + 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().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + 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); + + listOrchestrationClustersSettings = + PagedCallSettings.newBuilder(LIST_ORCHESTRATION_CLUSTERS_PAGE_STR_FACT); + getOrchestrationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOrchestrationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOrchestrationClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteOrchestrationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOrchestrationClusterOperationSettings = OperationCallSettings.newBuilder(); + listEdgeSlmsSettings = PagedCallSettings.newBuilder(LIST_EDGE_SLMS_PAGE_STR_FACT); + getEdgeSlmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEdgeSlmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createEdgeSlmOperationSettings = OperationCallSettings.newBuilder(); + deleteEdgeSlmSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteEdgeSlmOperationSettings = OperationCallSettings.newBuilder(); + createBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBlueprintRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBlueprintsSettings = PagedCallSettings.newBuilder(LIST_BLUEPRINTS_PAGE_STR_FACT); + approveBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + proposeBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rejectBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBlueprintRevisionsSettings = + PagedCallSettings.newBuilder(LIST_BLUEPRINT_REVISIONS_PAGE_STR_FACT); + searchBlueprintRevisionsSettings = + PagedCallSettings.newBuilder(SEARCH_BLUEPRINT_REVISIONS_PAGE_STR_FACT); + searchDeploymentRevisionsSettings = + PagedCallSettings.newBuilder(SEARCH_DEPLOYMENT_REVISIONS_PAGE_STR_FACT); + discardBlueprintChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPublicBlueprintsSettings = + PagedCallSettings.newBuilder(LIST_PUBLIC_BLUEPRINTS_PAGE_STR_FACT); + getPublicBlueprintSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDeploymentRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); + listDeploymentRevisionsSettings = + PagedCallSettings.newBuilder(LIST_DEPLOYMENT_REVISIONS_PAGE_STR_FACT); + discardDeploymentChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + applyDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + computeDeploymentStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rollbackDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getHydratedDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listHydratedDeploymentsSettings = + PagedCallSettings.newBuilder(LIST_HYDRATED_DEPLOYMENTS_PAGE_STR_FACT); + updateHydratedDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + applyHydratedDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listOrchestrationClustersSettings, + getOrchestrationClusterSettings, + createOrchestrationClusterSettings, + deleteOrchestrationClusterSettings, + listEdgeSlmsSettings, + getEdgeSlmSettings, + createEdgeSlmSettings, + deleteEdgeSlmSettings, + createBlueprintSettings, + updateBlueprintSettings, + getBlueprintSettings, + deleteBlueprintSettings, + deleteBlueprintRevisionSettings, + listBlueprintsSettings, + approveBlueprintSettings, + proposeBlueprintSettings, + rejectBlueprintSettings, + listBlueprintRevisionsSettings, + searchBlueprintRevisionsSettings, + searchDeploymentRevisionsSettings, + discardBlueprintChangesSettings, + listPublicBlueprintsSettings, + getPublicBlueprintSettings, + createDeploymentSettings, + updateDeploymentSettings, + getDeploymentSettings, + deleteDeploymentSettings, + removeDeploymentSettings, + deleteDeploymentRevisionSettings, + listDeploymentsSettings, + listDeploymentRevisionsSettings, + discardDeploymentChangesSettings, + applyDeploymentSettings, + computeDeploymentStatusSettings, + rollbackDeploymentSettings, + getHydratedDeploymentSettings, + listHydratedDeploymentsSettings, + updateHydratedDeploymentSettings, + applyHydratedDeploymentSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(TelcoAutomationStubSettings settings) { + super(settings); + + listOrchestrationClustersSettings = settings.listOrchestrationClustersSettings.toBuilder(); + getOrchestrationClusterSettings = settings.getOrchestrationClusterSettings.toBuilder(); + createOrchestrationClusterSettings = settings.createOrchestrationClusterSettings.toBuilder(); + createOrchestrationClusterOperationSettings = + settings.createOrchestrationClusterOperationSettings.toBuilder(); + deleteOrchestrationClusterSettings = settings.deleteOrchestrationClusterSettings.toBuilder(); + deleteOrchestrationClusterOperationSettings = + settings.deleteOrchestrationClusterOperationSettings.toBuilder(); + listEdgeSlmsSettings = settings.listEdgeSlmsSettings.toBuilder(); + getEdgeSlmSettings = settings.getEdgeSlmSettings.toBuilder(); + createEdgeSlmSettings = settings.createEdgeSlmSettings.toBuilder(); + createEdgeSlmOperationSettings = settings.createEdgeSlmOperationSettings.toBuilder(); + deleteEdgeSlmSettings = settings.deleteEdgeSlmSettings.toBuilder(); + deleteEdgeSlmOperationSettings = settings.deleteEdgeSlmOperationSettings.toBuilder(); + createBlueprintSettings = settings.createBlueprintSettings.toBuilder(); + updateBlueprintSettings = settings.updateBlueprintSettings.toBuilder(); + getBlueprintSettings = settings.getBlueprintSettings.toBuilder(); + deleteBlueprintSettings = settings.deleteBlueprintSettings.toBuilder(); + deleteBlueprintRevisionSettings = settings.deleteBlueprintRevisionSettings.toBuilder(); + listBlueprintsSettings = settings.listBlueprintsSettings.toBuilder(); + approveBlueprintSettings = settings.approveBlueprintSettings.toBuilder(); + proposeBlueprintSettings = settings.proposeBlueprintSettings.toBuilder(); + rejectBlueprintSettings = settings.rejectBlueprintSettings.toBuilder(); + listBlueprintRevisionsSettings = settings.listBlueprintRevisionsSettings.toBuilder(); + searchBlueprintRevisionsSettings = settings.searchBlueprintRevisionsSettings.toBuilder(); + searchDeploymentRevisionsSettings = settings.searchDeploymentRevisionsSettings.toBuilder(); + discardBlueprintChangesSettings = settings.discardBlueprintChangesSettings.toBuilder(); + listPublicBlueprintsSettings = settings.listPublicBlueprintsSettings.toBuilder(); + getPublicBlueprintSettings = settings.getPublicBlueprintSettings.toBuilder(); + createDeploymentSettings = settings.createDeploymentSettings.toBuilder(); + updateDeploymentSettings = settings.updateDeploymentSettings.toBuilder(); + getDeploymentSettings = settings.getDeploymentSettings.toBuilder(); + deleteDeploymentSettings = settings.deleteDeploymentSettings.toBuilder(); + removeDeploymentSettings = settings.removeDeploymentSettings.toBuilder(); + deleteDeploymentRevisionSettings = settings.deleteDeploymentRevisionSettings.toBuilder(); + listDeploymentsSettings = settings.listDeploymentsSettings.toBuilder(); + listDeploymentRevisionsSettings = settings.listDeploymentRevisionsSettings.toBuilder(); + discardDeploymentChangesSettings = settings.discardDeploymentChangesSettings.toBuilder(); + applyDeploymentSettings = settings.applyDeploymentSettings.toBuilder(); + computeDeploymentStatusSettings = settings.computeDeploymentStatusSettings.toBuilder(); + rollbackDeploymentSettings = settings.rollbackDeploymentSettings.toBuilder(); + getHydratedDeploymentSettings = settings.getHydratedDeploymentSettings.toBuilder(); + listHydratedDeploymentsSettings = settings.listHydratedDeploymentsSettings.toBuilder(); + updateHydratedDeploymentSettings = settings.updateHydratedDeploymentSettings.toBuilder(); + applyHydratedDeploymentSettings = settings.applyHydratedDeploymentSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listOrchestrationClustersSettings, + getOrchestrationClusterSettings, + createOrchestrationClusterSettings, + deleteOrchestrationClusterSettings, + listEdgeSlmsSettings, + getEdgeSlmSettings, + createEdgeSlmSettings, + deleteEdgeSlmSettings, + createBlueprintSettings, + updateBlueprintSettings, + getBlueprintSettings, + deleteBlueprintSettings, + deleteBlueprintRevisionSettings, + listBlueprintsSettings, + approveBlueprintSettings, + proposeBlueprintSettings, + rejectBlueprintSettings, + listBlueprintRevisionsSettings, + searchBlueprintRevisionsSettings, + searchDeploymentRevisionsSettings, + discardBlueprintChangesSettings, + listPublicBlueprintsSettings, + getPublicBlueprintSettings, + createDeploymentSettings, + updateDeploymentSettings, + getDeploymentSettings, + deleteDeploymentSettings, + removeDeploymentSettings, + deleteDeploymentRevisionSettings, + listDeploymentsSettings, + listDeploymentRevisionsSettings, + discardDeploymentChangesSettings, + applyDeploymentSettings, + computeDeploymentStatusSettings, + rollbackDeploymentSettings, + getHydratedDeploymentSettings, + listHydratedDeploymentsSettings, + updateHydratedDeploymentSettings, + applyHydratedDeploymentSettings, + listLocationsSettings, + getLocationSettings); + } + + 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 createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listOrchestrationClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getOrchestrationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createOrchestrationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteOrchestrationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listEdgeSlmsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getEdgeSlmSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createEdgeSlmSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteEdgeSlmSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteBlueprintRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBlueprintsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .approveBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .proposeBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .rejectBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBlueprintRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchBlueprintRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchDeploymentRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .discardBlueprintChangesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listPublicBlueprintsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getPublicBlueprintSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .removeDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDeploymentRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeploymentRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .discardDeploymentChangesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .applyDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .computeDeploymentStatusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .rollbackDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getHydratedDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listHydratedDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateHydratedDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .applyHydratedDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createOrchestrationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OrchestrationCluster.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 + .deleteOrchestrationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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())); + + builder + .createEdgeSlmOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(EdgeSlm.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 + .deleteEdgeSlmOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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 listOrchestrationClusters. */ + public PagedCallSettings.Builder< + ListOrchestrationClustersRequest, + ListOrchestrationClustersResponse, + ListOrchestrationClustersPagedResponse> + listOrchestrationClustersSettings() { + return listOrchestrationClustersSettings; + } + + /** Returns the builder for the settings used for calls to getOrchestrationCluster. */ + public UnaryCallSettings.Builder + getOrchestrationClusterSettings() { + return getOrchestrationClusterSettings; + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + public UnaryCallSettings.Builder + createOrchestrationClusterSettings() { + return createOrchestrationClusterSettings; + } + + /** Returns the builder for the settings used for calls to createOrchestrationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationSettings() { + return createOrchestrationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + public UnaryCallSettings.Builder + deleteOrchestrationClusterSettings() { + return deleteOrchestrationClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteOrchestrationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteOrchestrationClusterRequest, Empty, OperationMetadata> + deleteOrchestrationClusterOperationSettings() { + return deleteOrchestrationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to listEdgeSlms. */ + public PagedCallSettings.Builder< + ListEdgeSlmsRequest, ListEdgeSlmsResponse, ListEdgeSlmsPagedResponse> + listEdgeSlmsSettings() { + return listEdgeSlmsSettings; + } + + /** Returns the builder for the settings used for calls to getEdgeSlm. */ + public UnaryCallSettings.Builder getEdgeSlmSettings() { + return getEdgeSlmSettings; + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + public UnaryCallSettings.Builder createEdgeSlmSettings() { + return createEdgeSlmSettings; + } + + /** Returns the builder for the settings used for calls to createEdgeSlm. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createEdgeSlmOperationSettings() { + return createEdgeSlmOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + public UnaryCallSettings.Builder deleteEdgeSlmSettings() { + return deleteEdgeSlmSettings; + } + + /** Returns the builder for the settings used for calls to deleteEdgeSlm. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteEdgeSlmOperationSettings() { + return deleteEdgeSlmOperationSettings; + } + + /** Returns the builder for the settings used for calls to createBlueprint. */ + public UnaryCallSettings.Builder createBlueprintSettings() { + return createBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to updateBlueprint. */ + public UnaryCallSettings.Builder updateBlueprintSettings() { + return updateBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to getBlueprint. */ + public UnaryCallSettings.Builder getBlueprintSettings() { + return getBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to deleteBlueprint. */ + public UnaryCallSettings.Builder deleteBlueprintSettings() { + return deleteBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to deleteBlueprintRevision. */ + public UnaryCallSettings.Builder + deleteBlueprintRevisionSettings() { + return deleteBlueprintRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listBlueprints. */ + public PagedCallSettings.Builder< + ListBlueprintsRequest, ListBlueprintsResponse, ListBlueprintsPagedResponse> + listBlueprintsSettings() { + return listBlueprintsSettings; + } + + /** Returns the builder for the settings used for calls to approveBlueprint. */ + public UnaryCallSettings.Builder + approveBlueprintSettings() { + return approveBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to proposeBlueprint. */ + public UnaryCallSettings.Builder + proposeBlueprintSettings() { + return proposeBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to rejectBlueprint. */ + public UnaryCallSettings.Builder rejectBlueprintSettings() { + return rejectBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to listBlueprintRevisions. */ + public PagedCallSettings.Builder< + ListBlueprintRevisionsRequest, + ListBlueprintRevisionsResponse, + ListBlueprintRevisionsPagedResponse> + listBlueprintRevisionsSettings() { + return listBlueprintRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to searchBlueprintRevisions. */ + public PagedCallSettings.Builder< + SearchBlueprintRevisionsRequest, + SearchBlueprintRevisionsResponse, + SearchBlueprintRevisionsPagedResponse> + searchBlueprintRevisionsSettings() { + return searchBlueprintRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to searchDeploymentRevisions. */ + public PagedCallSettings.Builder< + SearchDeploymentRevisionsRequest, + SearchDeploymentRevisionsResponse, + SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsSettings() { + return searchDeploymentRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to discardBlueprintChanges. */ + public UnaryCallSettings.Builder< + DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse> + discardBlueprintChangesSettings() { + return discardBlueprintChangesSettings; + } + + /** Returns the builder for the settings used for calls to listPublicBlueprints. */ + public PagedCallSettings.Builder< + ListPublicBlueprintsRequest, + ListPublicBlueprintsResponse, + ListPublicBlueprintsPagedResponse> + listPublicBlueprintsSettings() { + return listPublicBlueprintsSettings; + } + + /** Returns the builder for the settings used for calls to getPublicBlueprint. */ + public UnaryCallSettings.Builder + getPublicBlueprintSettings() { + return getPublicBlueprintSettings; + } + + /** Returns the builder for the settings used for calls to createDeployment. */ + public UnaryCallSettings.Builder + createDeploymentSettings() { + return createDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to updateDeployment. */ + public UnaryCallSettings.Builder + updateDeploymentSettings() { + return updateDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to getDeployment. */ + public UnaryCallSettings.Builder getDeploymentSettings() { + return getDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to deleteDeployment. */ + public UnaryCallSettings.Builder deleteDeploymentSettings() { + return deleteDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to removeDeployment. */ + public UnaryCallSettings.Builder removeDeploymentSettings() { + return removeDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to deleteDeploymentRevision. */ + public UnaryCallSettings.Builder + deleteDeploymentRevisionSettings() { + return deleteDeploymentRevisionSettings; + } + + /** Returns the builder for the settings used for calls to listDeployments. */ + public PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return listDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to listDeploymentRevisions. */ + public PagedCallSettings.Builder< + ListDeploymentRevisionsRequest, + ListDeploymentRevisionsResponse, + ListDeploymentRevisionsPagedResponse> + listDeploymentRevisionsSettings() { + return listDeploymentRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to discardDeploymentChanges. */ + public UnaryCallSettings.Builder< + DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse> + discardDeploymentChangesSettings() { + return discardDeploymentChangesSettings; + } + + /** Returns the builder for the settings used for calls to applyDeployment. */ + public UnaryCallSettings.Builder applyDeploymentSettings() { + return applyDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to computeDeploymentStatus. */ + public UnaryCallSettings.Builder< + ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse> + computeDeploymentStatusSettings() { + return computeDeploymentStatusSettings; + } + + /** Returns the builder for the settings used for calls to rollbackDeployment. */ + public UnaryCallSettings.Builder + rollbackDeploymentSettings() { + return rollbackDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to getHydratedDeployment. */ + public UnaryCallSettings.Builder + getHydratedDeploymentSettings() { + return getHydratedDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to listHydratedDeployments. */ + public PagedCallSettings.Builder< + ListHydratedDeploymentsRequest, + ListHydratedDeploymentsResponse, + ListHydratedDeploymentsPagedResponse> + listHydratedDeploymentsSettings() { + return listHydratedDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to updateHydratedDeployment. */ + public UnaryCallSettings.Builder + updateHydratedDeploymentSettings() { + return updateHydratedDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to applyHydratedDeployment. */ + public UnaryCallSettings.Builder + applyHydratedDeploymentSettings() { + return applyHydratedDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public TelcoAutomationStubSettings build() throws IOException { + return new TelcoAutomationStubSettings(this); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json new file mode 100644 index 000000000000..03ce3dafad56 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1/reflect-config.json @@ -0,0 +1,2621 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Blueprint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Blueprint$ApprovalState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Blueprint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.BlueprintView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Deployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Deployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Deployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeploymentLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DeploymentView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.EdgeSlm", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.EdgeSlm$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.EdgeSlm$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.EdgeSlm$WorkloadClusterType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.File", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.File$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.FullManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.FullManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.HydratedDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.HydratedDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.HydratedDeployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.HydrationStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.HydrationStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListBlueprintsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig$CidrBlock", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig$CidrBlock$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.NFDeploySiteStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.NFDeploySiteStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.NFDeployStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.NFDeployStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.OrchestrationCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.OrchestrationCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.OrchestrationCluster$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.PublicBlueprint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.PublicBlueprint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.RejectBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.RejectBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ResourceStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ResourceStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.ResourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SiteVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.SiteVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.StandardManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.StandardManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.WorkloadStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1.WorkloadStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json new file mode 100644 index 000000000000..ee125dba5b0b --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/resources/META-INF/native-image/com.google.cloud.telcoautomation.v1alpha1/reflect-config.json @@ -0,0 +1,2585 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Blueprint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Blueprint$ApprovalState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Blueprint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.BlueprintView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Deployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Deployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Deployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DeploymentView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.EdgeSlm", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.EdgeSlm$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.EdgeSlm$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.EdgeSlm$WorkloadClusterType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.File", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.File$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig$CidrBlock", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig$CidrBlock$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint$DeploymentLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ResourceStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ResourceStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.ResourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocations.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocations.java new file mode 100644 index 000000000000..725f83437f07 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @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-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocationsImpl.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..8691a4721014 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +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 MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + 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 listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomation.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomation.java new file mode 100644 index 000000000000..4cd72326a621 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomation.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 MockTelcoAutomation implements MockGrpcService { + private final MockTelcoAutomationImpl serviceImpl; + + public MockTelcoAutomation() { + serviceImpl = new MockTelcoAutomationImpl(); + } + + @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-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomationImpl.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomationImpl.java new file mode 100644 index 000000000000..cd6af74ee237 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/MockTelcoAutomationImpl.java @@ -0,0 +1,829 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.telcoautomation.v1.TelcoAutomationGrpc.TelcoAutomationImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTelcoAutomationImpl extends TelcoAutomationImplBase { + private List requests; + private Queue responses; + + public MockTelcoAutomationImpl() { + 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 listOrchestrationClusters( + ListOrchestrationClustersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOrchestrationClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListOrchestrationClustersResponse) 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 ListOrchestrationClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOrchestrationClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOrchestrationCluster( + GetOrchestrationClusterRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OrchestrationCluster) { + requests.add(request); + responseObserver.onNext(((OrchestrationCluster) 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 GetOrchestrationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OrchestrationCluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createOrchestrationCluster( + CreateOrchestrationClusterRequest 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 CreateOrchestrationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOrchestrationCluster( + DeleteOrchestrationClusterRequest 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 DeleteOrchestrationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEdgeSlms( + ListEdgeSlmsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEdgeSlmsResponse) { + requests.add(request); + responseObserver.onNext(((ListEdgeSlmsResponse) 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 ListEdgeSlms, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEdgeSlmsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getEdgeSlm(GetEdgeSlmRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EdgeSlm) { + requests.add(request); + responseObserver.onNext(((EdgeSlm) 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 GetEdgeSlm, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EdgeSlm.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createEdgeSlm( + CreateEdgeSlmRequest 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 CreateEdgeSlm, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteEdgeSlm( + DeleteEdgeSlmRequest 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 DeleteEdgeSlm, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBlueprint( + CreateBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 CreateBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBlueprint( + UpdateBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 UpdateBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBlueprint( + GetBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 GetBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBlueprint( + DeleteBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBlueprints( + ListBlueprintsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBlueprintsResponse) { + requests.add(request); + responseObserver.onNext(((ListBlueprintsResponse) 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 ListBlueprints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBlueprintsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void approveBlueprint( + ApproveBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 ApproveBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void proposeBlueprint( + ProposeBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 ProposeBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rejectBlueprint( + RejectBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 RejectBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBlueprintRevisions( + ListBlueprintRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBlueprintRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListBlueprintRevisionsResponse) 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 ListBlueprintRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBlueprintRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchBlueprintRevisions( + SearchBlueprintRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchBlueprintRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((SearchBlueprintRevisionsResponse) 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 SearchBlueprintRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchBlueprintRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchDeploymentRevisions( + SearchDeploymentRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchDeploymentRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((SearchDeploymentRevisionsResponse) 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 SearchDeploymentRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchDeploymentRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void discardBlueprintChanges( + DiscardBlueprintChangesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DiscardBlueprintChangesResponse) { + requests.add(request); + responseObserver.onNext(((DiscardBlueprintChangesResponse) 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 DiscardBlueprintChanges, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DiscardBlueprintChangesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPublicBlueprints( + ListPublicBlueprintsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPublicBlueprintsResponse) { + requests.add(request); + responseObserver.onNext(((ListPublicBlueprintsResponse) 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 ListPublicBlueprints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPublicBlueprintsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPublicBlueprint( + GetPublicBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PublicBlueprint) { + requests.add(request); + responseObserver.onNext(((PublicBlueprint) 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 GetPublicBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PublicBlueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDeployment( + CreateDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 CreateDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDeployment( + UpdateDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 UpdateDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDeployment( + GetDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 GetDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeDeployment( + RemoveDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 RemoveDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDeployments( + ListDeploymentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListDeploymentsResponse) 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 ListDeployments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDeploymentRevisions( + ListDeploymentRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDeploymentRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListDeploymentRevisionsResponse) 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 ListDeploymentRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDeploymentRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void discardDeploymentChanges( + DiscardDeploymentChangesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DiscardDeploymentChangesResponse) { + requests.add(request); + responseObserver.onNext(((DiscardDeploymentChangesResponse) 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 DiscardDeploymentChanges, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DiscardDeploymentChangesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void applyDeployment( + ApplyDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 ApplyDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeDeploymentStatus( + ComputeDeploymentStatusRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeDeploymentStatusResponse) { + requests.add(request); + responseObserver.onNext(((ComputeDeploymentStatusResponse) 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 ComputeDeploymentStatus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeDeploymentStatusResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rollbackDeployment( + RollbackDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 RollbackDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getHydratedDeployment( + GetHydratedDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HydratedDeployment) { + requests.add(request); + responseObserver.onNext(((HydratedDeployment) 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 GetHydratedDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HydratedDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listHydratedDeployments( + ListHydratedDeploymentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListHydratedDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListHydratedDeploymentsResponse) 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 ListHydratedDeployments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListHydratedDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateHydratedDeployment( + UpdateHydratedDeploymentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HydratedDeployment) { + requests.add(request); + responseObserver.onNext(((HydratedDeployment) 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 UpdateHydratedDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HydratedDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void applyHydratedDeployment( + ApplyHydratedDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HydratedDeployment) { + requests.add(request); + responseObserver.onNext(((HydratedDeployment) 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 ApplyHydratedDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HydratedDeployment.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientHttpJsonTest.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientHttpJsonTest.java new file mode 100644 index 000000000000..1545cff0613f --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientHttpJsonTest.java @@ -0,0 +1,4086 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.stub.HttpJsonTelcoAutomationStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TelcoAutomationClientHttpJsonTest { + private static MockHttpService mockService; + private static TelcoAutomationClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTelcoAutomationStub.getMethodDescriptors(), + TelcoAutomationSettings.getDefaultEndpoint()); + TelcoAutomationSettings settings = + TelcoAutomationSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TelcoAutomationSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TelcoAutomationClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listOrchestrationClustersTest() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrchestrationClustersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrchestrationClustersTest2() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrchestrationClustersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrchestrationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrchestrationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOrchestrationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOrchestrationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOrchestrationClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteOrchestrationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.deleteOrchestrationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOrchestrationClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteOrchestrationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + client.deleteOrchestrationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listEdgeSlmsTest() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEdgeSlmsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEdgeSlmsTest2() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEdgeSlmsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEdgeSlmExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEdgeSlmExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEdgeSlmExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEdgeSlmExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteEdgeSlmTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteEdgeSlmExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.deleteEdgeSlmAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteEdgeSlmTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteEdgeSlmExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + client.deleteEdgeSlmAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + Blueprint blueprint = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Blueprint actualResponse = client.updateBlueprint(blueprint, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Blueprint blueprint = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBlueprint(blueprint, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + client.deleteBlueprint(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + client.deleteBlueprint(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void approveBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void approveBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void proposeBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void proposeBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rejectBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rejectBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchBlueprintRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchBlueprintRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchDeploymentRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchDeploymentRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardBlueprintChangesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest2() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardBlueprintChangesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPublicBlueprintsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest2() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPublicBlueprintsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setSourceProvider("sourceProvider1943963436") + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPublicBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest2() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setSourceProvider("sourceProvider1943963436") + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8265/locations/location-8265/publicBlueprints/publicBlueprint-8265"; + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPublicBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8265/locations/location-8265/publicBlueprints/publicBlueprint-8265"; + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + Deployment deployment = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Deployment actualResponse = client.updateDeployment(deployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Deployment deployment = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeployment(deployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + client.removeDeployment(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + client.removeDeployment(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardDeploymentChangesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest2() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardDeploymentChangesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setAggregatedStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void computeDeploymentStatusExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest2() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setAggregatedStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void computeDeploymentStatusExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHydratedDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHydratedDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHydratedDeploymentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest2() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-8809/locations/location-8809/orchestrationClusters/orchestrationCluster-8809/deployments/deployment-8809"; + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHydratedDeploymentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-8809/locations/location-8809/orchestrationClusters/orchestrationCluster-8809/deployments/deployment-8809"; + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + HydratedDeployment hydratedDeployment = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + HydratedDeployment actualResponse = + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateHydratedDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HydratedDeployment hydratedDeployment = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyHydratedDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyHydratedDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-4001/locations") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-4001/locations") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientTest.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientTest.java new file mode 100644 index 000000000000..91930af76a6e --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClientTest.java @@ -0,0 +1,3594 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1; + +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.FieldMask; +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 TelcoAutomationClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockTelcoAutomation mockTelcoAutomation; + private LocalChannelProvider channelProvider; + private TelcoAutomationClient client; + + @BeforeClass + public static void startStaticServer() { + mockTelcoAutomation = new MockTelcoAutomation(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockTelcoAutomation, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TelcoAutomationSettings settings = + TelcoAutomationSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TelcoAutomationClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listOrchestrationClustersTest() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrchestrationClustersRequest actualRequest = + ((ListOrchestrationClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrchestrationClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrchestrationClustersTest2() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrchestrationClustersRequest actualRequest = + ((ListOrchestrationClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrchestrationClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrchestrationClusterRequest actualRequest = + ((GetOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrchestrationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrchestrationClusterRequest actualRequest = + ((GetOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrchestrationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOrchestrationClusterRequest actualRequest = + ((CreateOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(orchestrationCluster, actualRequest.getOrchestrationCluster()); + Assert.assertEquals(orchestrationClusterId, actualRequest.getOrchestrationClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOrchestrationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .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 createOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String parent = "parent-995424086"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOrchestrationClusterRequest actualRequest = + ((CreateOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(orchestrationCluster, actualRequest.getOrchestrationCluster()); + Assert.assertEquals(orchestrationClusterId, actualRequest.getOrchestrationClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOrchestrationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .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 deleteOrchestrationClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOrchestrationClusterRequest actualRequest = + ((DeleteOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOrchestrationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.deleteOrchestrationClusterAsync(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 deleteOrchestrationClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOrchestrationClusterRequest actualRequest = + ((DeleteOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOrchestrationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteOrchestrationClusterAsync(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 listEdgeSlmsTest() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEdgeSlmsRequest actualRequest = ((ListEdgeSlmsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEdgeSlmsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEdgeSlmsTest2() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEdgeSlmsRequest actualRequest = ((ListEdgeSlmsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEdgeSlmsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEdgeSlmRequest actualRequest = ((GetEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEdgeSlmExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEdgeSlmRequest actualRequest = ((GetEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEdgeSlmExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEdgeSlmRequest actualRequest = ((CreateEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(edgeSlm, actualRequest.getEdgeSlm()); + Assert.assertEquals(edgeSlmId, actualRequest.getEdgeSlmId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEdgeSlmExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).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 createEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String parent = "parent-995424086"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEdgeSlmRequest actualRequest = ((CreateEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(edgeSlm, actualRequest.getEdgeSlm()); + Assert.assertEquals(edgeSlmId, actualRequest.getEdgeSlmId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEdgeSlmExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).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 deleteEdgeSlmTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEdgeSlmRequest actualRequest = ((DeleteEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEdgeSlmExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.deleteEdgeSlmAsync(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 deleteEdgeSlmTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEdgeSlmRequest actualRequest = ((DeleteEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEdgeSlmExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteEdgeSlmAsync(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 createBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBlueprintRequest actualRequest = ((CreateBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(blueprint, actualRequest.getBlueprint()); + Assert.assertEquals(blueprintId, actualRequest.getBlueprintId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBlueprintRequest actualRequest = ((CreateBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(blueprint, actualRequest.getBlueprint()); + Assert.assertEquals(blueprintId, actualRequest.getBlueprintId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + Blueprint blueprint = Blueprint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Blueprint actualResponse = client.updateBlueprint(blueprint, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBlueprintRequest actualRequest = ((UpdateBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(blueprint, actualRequest.getBlueprint()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + Blueprint blueprint = Blueprint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBlueprint(blueprint, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBlueprintRequest actualRequest = ((GetBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBlueprintRequest actualRequest = ((GetBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + client.deleteBlueprint(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBlueprintRequest actualRequest = ((DeleteBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteBlueprint(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBlueprintRequest actualRequest = ((DeleteBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintsRequest actualRequest = ((ListBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintsRequest actualRequest = ((ListBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveBlueprintRequest actualRequest = ((ApproveBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveBlueprintRequest actualRequest = ((ApproveBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProposeBlueprintRequest actualRequest = ((ProposeBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void proposeBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProposeBlueprintRequest actualRequest = ((ProposeBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void proposeBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RejectBlueprintRequest actualRequest = ((RejectBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rejectBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RejectBlueprintRequest actualRequest = ((RejectBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rejectBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintRevisionsRequest actualRequest = + ((ListBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintRevisionsRequest actualRequest = + ((ListBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchBlueprintRevisionsRequest actualRequest = + ((SearchBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchBlueprintRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchBlueprintRevisionsRequest actualRequest = + ((SearchBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchBlueprintRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchDeploymentRevisionsRequest actualRequest = + ((SearchDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchDeploymentRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchDeploymentRevisionsRequest actualRequest = + ((SearchDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchDeploymentRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardBlueprintChangesRequest actualRequest = + ((DiscardBlueprintChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardBlueprintChangesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest2() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardBlueprintChangesRequest actualRequest = + ((DiscardBlueprintChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardBlueprintChangesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublicBlueprintsRequest actualRequest = + ((ListPublicBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublicBlueprintsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest2() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublicBlueprintsRequest actualRequest = + ((ListPublicBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublicBlueprintsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setSourceProvider("sourceProvider1943963436") + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublicBlueprintRequest actualRequest = ((GetPublicBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPublicBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest2() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setSourceProvider("sourceProvider1943963436") + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublicBlueprintRequest actualRequest = ((GetPublicBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPublicBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Deployment actualResponse = client.updateDeployment(deployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDeploymentRequest actualRequest = ((UpdateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeployment(deployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentRequest actualRequest = ((GetDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentRequest actualRequest = ((GetDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + client.removeDeployment(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveDeploymentRequest actualRequest = ((RemoveDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + client.removeDeployment(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveDeploymentRequest actualRequest = ((RemoveDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentsRequest actualRequest = ((ListDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentsRequest actualRequest = ((ListDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentRevisionsRequest actualRequest = + ((ListDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentRevisionsRequest actualRequest = + ((ListDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardDeploymentChangesRequest actualRequest = + ((DiscardDeploymentChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardDeploymentChangesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest2() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardDeploymentChangesRequest actualRequest = + ((DiscardDeploymentChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardDeploymentChangesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyDeploymentRequest actualRequest = ((ApplyDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyDeploymentRequest actualRequest = ((ApplyDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setAggregatedStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeDeploymentStatusRequest actualRequest = + ((ComputeDeploymentStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeDeploymentStatusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest2() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setAggregatedStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeDeploymentStatusRequest actualRequest = + ((ComputeDeploymentStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeDeploymentStatusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackDeploymentRequest actualRequest = ((RollbackDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .setWorkloadCluster("workloadCluster925665923") + .setDeploymentLevel(DeploymentLevel.forNumber(0)) + .setRollbackSupport(true) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackDeploymentRequest actualRequest = ((RollbackDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHydratedDeploymentRequest actualRequest = + ((GetHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHydratedDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHydratedDeploymentRequest actualRequest = + ((GetHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHydratedDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHydratedDeploymentsRequest actualRequest = + ((ListHydratedDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHydratedDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest2() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHydratedDeploymentsRequest actualRequest = + ((ListHydratedDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHydratedDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + HydratedDeployment actualResponse = + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateHydratedDeploymentRequest actualRequest = + ((UpdateHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(hydratedDeployment, actualRequest.getHydratedDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateHydratedDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyHydratedDeploymentRequest actualRequest = + ((ApplyHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyHydratedDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyHydratedDeploymentRequest actualRequest = + ((ApplyHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyHydratedDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocations.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocations.java new file mode 100644 index 000000000000..eeae4fdcedb8 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @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-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocationsImpl.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocationsImpl.java new file mode 100644 index 000000000000..ba6da849fd4d --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +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 MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + 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 listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomation.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomation.java new file mode 100644 index 000000000000..c2e36230f081 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomation.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 MockTelcoAutomation implements MockGrpcService { + private final MockTelcoAutomationImpl serviceImpl; + + public MockTelcoAutomation() { + serviceImpl = new MockTelcoAutomationImpl(); + } + + @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-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomationImpl.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomationImpl.java new file mode 100644 index 000000000000..d4c19bcfe23f --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/MockTelcoAutomationImpl.java @@ -0,0 +1,892 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +import com.google.api.core.BetaApi; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationGrpc.TelcoAutomationImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTelcoAutomationImpl extends TelcoAutomationImplBase { + private List requests; + private Queue responses; + + public MockTelcoAutomationImpl() { + 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 listOrchestrationClusters( + ListOrchestrationClustersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOrchestrationClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListOrchestrationClustersResponse) 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 ListOrchestrationClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOrchestrationClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOrchestrationCluster( + GetOrchestrationClusterRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OrchestrationCluster) { + requests.add(request); + responseObserver.onNext(((OrchestrationCluster) 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 GetOrchestrationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OrchestrationCluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createOrchestrationCluster( + CreateOrchestrationClusterRequest 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 CreateOrchestrationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOrchestrationCluster( + DeleteOrchestrationClusterRequest 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 DeleteOrchestrationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEdgeSlms( + ListEdgeSlmsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEdgeSlmsResponse) { + requests.add(request); + responseObserver.onNext(((ListEdgeSlmsResponse) 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 ListEdgeSlms, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEdgeSlmsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getEdgeSlm(GetEdgeSlmRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof EdgeSlm) { + requests.add(request); + responseObserver.onNext(((EdgeSlm) 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 GetEdgeSlm, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + EdgeSlm.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createEdgeSlm( + CreateEdgeSlmRequest 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 CreateEdgeSlm, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteEdgeSlm( + DeleteEdgeSlmRequest 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 DeleteEdgeSlm, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBlueprint( + CreateBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 CreateBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBlueprint( + UpdateBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 UpdateBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBlueprint( + GetBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 GetBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBlueprint( + DeleteBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBlueprintRevision( + DeleteBlueprintRevisionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 DeleteBlueprintRevision, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBlueprints( + ListBlueprintsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBlueprintsResponse) { + requests.add(request); + responseObserver.onNext(((ListBlueprintsResponse) 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 ListBlueprints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBlueprintsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void approveBlueprint( + ApproveBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 ApproveBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void proposeBlueprint( + ProposeBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 ProposeBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rejectBlueprint( + RejectBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Blueprint) { + requests.add(request); + responseObserver.onNext(((Blueprint) 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 RejectBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Blueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBlueprintRevisions( + ListBlueprintRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBlueprintRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListBlueprintRevisionsResponse) 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 ListBlueprintRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBlueprintRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchBlueprintRevisions( + SearchBlueprintRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchBlueprintRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((SearchBlueprintRevisionsResponse) 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 SearchBlueprintRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchBlueprintRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchDeploymentRevisions( + SearchDeploymentRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchDeploymentRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((SearchDeploymentRevisionsResponse) 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 SearchDeploymentRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchDeploymentRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void discardBlueprintChanges( + DiscardBlueprintChangesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DiscardBlueprintChangesResponse) { + requests.add(request); + responseObserver.onNext(((DiscardBlueprintChangesResponse) 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 DiscardBlueprintChanges, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DiscardBlueprintChangesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPublicBlueprints( + ListPublicBlueprintsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPublicBlueprintsResponse) { + requests.add(request); + responseObserver.onNext(((ListPublicBlueprintsResponse) 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 ListPublicBlueprints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPublicBlueprintsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPublicBlueprint( + GetPublicBlueprintRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PublicBlueprint) { + requests.add(request); + responseObserver.onNext(((PublicBlueprint) 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 GetPublicBlueprint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PublicBlueprint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDeployment( + CreateDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 CreateDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDeployment( + UpdateDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 UpdateDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDeployment( + GetDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 GetDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDeployment( + DeleteDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeDeployment( + RemoveDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 RemoveDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDeploymentRevision( + DeleteDeploymentRevisionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 DeleteDeploymentRevision, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDeployments( + ListDeploymentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListDeploymentsResponse) 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 ListDeployments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDeploymentRevisions( + ListDeploymentRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDeploymentRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListDeploymentRevisionsResponse) 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 ListDeploymentRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDeploymentRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void discardDeploymentChanges( + DiscardDeploymentChangesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DiscardDeploymentChangesResponse) { + requests.add(request); + responseObserver.onNext(((DiscardDeploymentChangesResponse) 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 DiscardDeploymentChanges, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DiscardDeploymentChangesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void applyDeployment( + ApplyDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 ApplyDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeDeploymentStatus( + ComputeDeploymentStatusRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeDeploymentStatusResponse) { + requests.add(request); + responseObserver.onNext(((ComputeDeploymentStatusResponse) 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 ComputeDeploymentStatus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeDeploymentStatusResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rollbackDeployment( + RollbackDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 RollbackDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getHydratedDeployment( + GetHydratedDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HydratedDeployment) { + requests.add(request); + responseObserver.onNext(((HydratedDeployment) 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 GetHydratedDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HydratedDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listHydratedDeployments( + ListHydratedDeploymentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListHydratedDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListHydratedDeploymentsResponse) 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 ListHydratedDeployments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListHydratedDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateHydratedDeployment( + UpdateHydratedDeploymentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HydratedDeployment) { + requests.add(request); + responseObserver.onNext(((HydratedDeployment) 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 UpdateHydratedDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HydratedDeployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void applyHydratedDeployment( + ApplyHydratedDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HydratedDeployment) { + requests.add(request); + responseObserver.onNext(((HydratedDeployment) 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 ApplyHydratedDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HydratedDeployment.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientHttpJsonTest.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientHttpJsonTest.java new file mode 100644 index 000000000000..1c7e61b98ab5 --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientHttpJsonTest.java @@ -0,0 +1,4245 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.stub.HttpJsonTelcoAutomationStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TelcoAutomationClientHttpJsonTest { + private static MockHttpService mockService; + private static TelcoAutomationClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTelcoAutomationStub.getMethodDescriptors(), + TelcoAutomationSettings.getDefaultEndpoint()); + TelcoAutomationSettings settings = + TelcoAutomationSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TelcoAutomationSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TelcoAutomationClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listOrchestrationClustersTest() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrchestrationClustersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrchestrationClustersTest2() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrchestrationClustersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrchestrationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrchestrationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOrchestrationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOrchestrationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOrchestrationClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteOrchestrationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.deleteOrchestrationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOrchestrationClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteOrchestrationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-768/locations/location-768/orchestrationClusters/orchestrationCluster-768"; + client.deleteOrchestrationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listEdgeSlmsTest() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEdgeSlmsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEdgeSlmsTest2() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEdgeSlmsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEdgeSlmExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getEdgeSlmExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEdgeSlmExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createEdgeSlmExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteEdgeSlmTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteEdgeSlmExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.deleteEdgeSlmAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteEdgeSlmTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteEdgeSlmExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-804/locations/location-804/edgeSlms/edgeSlm-804"; + client.deleteEdgeSlmAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + Blueprint blueprint = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Blueprint actualResponse = client.updateBlueprint(blueprint, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Blueprint blueprint = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBlueprint(blueprint, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + client.deleteBlueprint(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + client.deleteBlueprint(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintRevisionTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + DeleteBlueprintRevisionRequest request = + DeleteBlueprintRevisionRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + + Blueprint actualResponse = client.deleteBlueprintRevision(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBlueprintRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeleteBlueprintRevisionRequest request = + DeleteBlueprintRevisionRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + client.deleteBlueprintRevision(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void approveBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void approveBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void proposeBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void proposeBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rejectBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rejectBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBlueprintRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchBlueprintRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchBlueprintRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchDeploymentRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchDeploymentRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardBlueprintChangesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest2() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardBlueprintChangesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9926/locations/location-9926/orchestrationClusters/orchestrationCluster-9926/blueprints/blueprint-9926"; + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPublicBlueprintsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest2() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPublicBlueprintsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPublicBlueprintExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest2() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8265/locations/location-8265/publicBlueprints/publicBlueprint-8265"; + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPublicBlueprintExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8265/locations/location-8265/publicBlueprints/publicBlueprint-8265"; + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + Deployment deployment = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Deployment actualResponse = client.updateDeployment(deployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Deployment deployment = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeployment(deployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + client.deleteDeployment(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + client.deleteDeployment(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + client.removeDeployment(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + client.removeDeployment(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentRevisionTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + DeleteDeploymentRevisionRequest request = + DeleteDeploymentRevisionRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + + Deployment actualResponse = client.deleteDeploymentRevision(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeploymentRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeleteDeploymentRevisionRequest request = + DeleteDeploymentRevisionRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + client.deleteDeploymentRevision(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1793/locations/location-1793/orchestrationClusters/orchestrationCluster-1793"; + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeploymentRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardDeploymentChangesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest2() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void discardDeploymentChangesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void computeDeploymentStatusExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest2() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void computeDeploymentStatusExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3706/locations/location-3706/orchestrationClusters/orchestrationCluster-3706/deployments/deployment-3706"; + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHydratedDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHydratedDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHydratedDeploymentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest2() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-8809/locations/location-8809/orchestrationClusters/orchestrationCluster-8809/deployments/deployment-8809"; + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHydratedDeploymentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-8809/locations/location-8809/orchestrationClusters/orchestrationCluster-8809/deployments/deployment-8809"; + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + HydratedDeployment hydratedDeployment = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + HydratedDeployment actualResponse = + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateHydratedDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HydratedDeployment hydratedDeployment = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyHydratedDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void applyHydratedDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8051/locations/location-8051/orchestrationClusters/orchestrationCluster-8051/deployments/deployment-8051/hydratedDeployments/hydratedDeployment-8051"; + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientTest.java b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientTest.java new file mode 100644 index 000000000000..185393995dbe --- /dev/null +++ b/java-telcoautomation/google-cloud-telcoautomation/src/test/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClientTest.java @@ -0,0 +1,3739 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse; +import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.FieldMask; +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 TelcoAutomationClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockTelcoAutomation mockTelcoAutomation; + private LocalChannelProvider channelProvider; + private TelcoAutomationClient client; + + @BeforeClass + public static void startStaticServer() { + mockTelcoAutomation = new MockTelcoAutomation(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockTelcoAutomation, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TelcoAutomationSettings settings = + TelcoAutomationSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TelcoAutomationClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listOrchestrationClustersTest() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrchestrationClustersRequest actualRequest = + ((ListOrchestrationClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrchestrationClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrchestrationClustersTest2() throws Exception { + OrchestrationCluster responsesElement = OrchestrationCluster.newBuilder().build(); + ListOrchestrationClustersResponse expectedResponse = + ListOrchestrationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllOrchestrationClusters(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOrchestrationClustersPagedResponse pagedListResponse = + client.listOrchestrationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrchestrationClustersList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrchestrationClustersRequest actualRequest = + ((ListOrchestrationClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrchestrationClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOrchestrationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrchestrationClusterRequest actualRequest = + ((GetOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrchestrationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + OrchestrationCluster actualResponse = client.getOrchestrationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrchestrationClusterRequest actualRequest = + ((GetOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrchestrationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getOrchestrationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOrchestrationClusterTest() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOrchestrationClusterRequest actualRequest = + ((CreateOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(orchestrationCluster, actualRequest.getOrchestrationCluster()); + Assert.assertEquals(orchestrationClusterId, actualRequest.getOrchestrationClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOrchestrationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .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 createOrchestrationClusterTest2() throws Exception { + OrchestrationCluster expectedResponse = + OrchestrationCluster.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setManagementConfig(ManagementConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String parent = "parent-995424086"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + + OrchestrationCluster actualResponse = + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOrchestrationClusterRequest actualRequest = + ((CreateOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(orchestrationCluster, actualRequest.getOrchestrationCluster()); + Assert.assertEquals(orchestrationClusterId, actualRequest.getOrchestrationClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOrchestrationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + client + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .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 deleteOrchestrationClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOrchestrationClusterRequest actualRequest = + ((DeleteOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOrchestrationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.deleteOrchestrationClusterAsync(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 deleteOrchestrationClusterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrchestrationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOrchestrationClusterAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOrchestrationClusterRequest actualRequest = + ((DeleteOrchestrationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOrchestrationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteOrchestrationClusterAsync(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 listEdgeSlmsTest() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEdgeSlmsRequest actualRequest = ((ListEdgeSlmsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEdgeSlmsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEdgeSlmsTest2() throws Exception { + EdgeSlm responsesElement = EdgeSlm.newBuilder().build(); + ListEdgeSlmsResponse expectedResponse = + ListEdgeSlmsResponse.newBuilder() + .setNextPageToken("") + .addAllEdgeSlms(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEdgeSlmsPagedResponse pagedListResponse = client.listEdgeSlms(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEdgeSlmsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEdgeSlmsRequest actualRequest = ((ListEdgeSlmsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEdgeSlmsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEdgeSlms(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEdgeSlmRequest actualRequest = ((GetEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEdgeSlmExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + EdgeSlm actualResponse = client.getEdgeSlm(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEdgeSlmRequest actualRequest = ((GetEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEdgeSlmExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getEdgeSlm(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createEdgeSlmTest() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEdgeSlmRequest actualRequest = ((CreateEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(edgeSlm, actualRequest.getEdgeSlm()); + Assert.assertEquals(edgeSlmId, actualRequest.getEdgeSlmId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEdgeSlmExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).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 createEdgeSlmTest2() throws Exception { + EdgeSlm expectedResponse = + EdgeSlm.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setOrchestrationCluster( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setTnaVersion("tnaVersion992913841") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String parent = "parent-995424086"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + + EdgeSlm actualResponse = client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateEdgeSlmRequest actualRequest = ((CreateEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(edgeSlm, actualRequest.getEdgeSlm()); + Assert.assertEquals(edgeSlmId, actualRequest.getEdgeSlmId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createEdgeSlmExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + client.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).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 deleteEdgeSlmTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEdgeSlmRequest actualRequest = ((DeleteEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEdgeSlmExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + client.deleteEdgeSlmAsync(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 deleteEdgeSlmTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteEdgeSlmTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTelcoAutomation.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteEdgeSlmAsync(name).get(); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteEdgeSlmRequest actualRequest = ((DeleteEdgeSlmRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteEdgeSlmExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteEdgeSlmAsync(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 createBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBlueprintRequest actualRequest = ((CreateBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(blueprint, actualRequest.getBlueprint()); + Assert.assertEquals(blueprintId, actualRequest.getBlueprintId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + + Blueprint actualResponse = client.createBlueprint(parent, blueprint, blueprintId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBlueprintRequest actualRequest = ((CreateBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(blueprint, actualRequest.getBlueprint()); + Assert.assertEquals(blueprintId, actualRequest.getBlueprintId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + client.createBlueprint(parent, blueprint, blueprintId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + Blueprint blueprint = Blueprint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Blueprint actualResponse = client.updateBlueprint(blueprint, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBlueprintRequest actualRequest = ((UpdateBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(blueprint, actualRequest.getBlueprint()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + Blueprint blueprint = Blueprint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBlueprint(blueprint, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBlueprintRequest actualRequest = ((GetBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.getBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBlueprintRequest actualRequest = ((GetBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + client.deleteBlueprint(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBlueprintRequest actualRequest = ((DeleteBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteBlueprint(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBlueprintRequest actualRequest = ((DeleteBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBlueprintRevisionTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeleteBlueprintRevisionRequest request = + DeleteBlueprintRevisionRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + + Blueprint actualResponse = client.deleteBlueprintRevision(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBlueprintRevisionRequest actualRequest = + ((DeleteBlueprintRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBlueprintRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeleteBlueprintRevisionRequest request = + DeleteBlueprintRevisionRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + client.deleteBlueprintRevision(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintsRequest actualRequest = ((ListBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintsResponse expectedResponse = + ListBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBlueprintsPagedResponse pagedListResponse = client.listBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintsRequest actualRequest = ((ListBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveBlueprintRequest actualRequest = ((ApproveBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.approveBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveBlueprintRequest actualRequest = ((ApproveBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.approveBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProposeBlueprintRequest actualRequest = ((ProposeBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void proposeBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void proposeBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.proposeBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ProposeBlueprintRequest actualRequest = ((ProposeBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void proposeBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.proposeBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RejectBlueprintRequest actualRequest = ((RejectBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rejectBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rejectBlueprintTest2() throws Exception { + Blueprint expectedResponse = + Blueprint.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprint("sourceBlueprint-1648799560") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Blueprint actualResponse = client.rejectBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RejectBlueprintRequest actualRequest = ((RejectBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rejectBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.rejectBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintRevisionsRequest actualRequest = + ((ListBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + ListBlueprintRevisionsResponse expectedResponse = + ListBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + ListBlueprintRevisionsPagedResponse pagedListResponse = client.listBlueprintRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBlueprintRevisionsRequest actualRequest = + ((ListBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBlueprintRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.listBlueprintRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchBlueprintRevisionsRequest actualRequest = + ((SearchBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchBlueprintRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchBlueprintRevisionsTest2() throws Exception { + Blueprint responsesElement = Blueprint.newBuilder().build(); + SearchBlueprintRevisionsResponse expectedResponse = + SearchBlueprintRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String query = "query107944136"; + + SearchBlueprintRevisionsPagedResponse pagedListResponse = + client.searchBlueprintRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchBlueprintRevisionsRequest actualRequest = + ((SearchBlueprintRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchBlueprintRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + String query = "query107944136"; + client.searchBlueprintRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchDeploymentRevisionsRequest actualRequest = + ((SearchDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchDeploymentRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + SearchDeploymentRevisionsResponse expectedResponse = + SearchDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String query = "query107944136"; + + SearchDeploymentRevisionsPagedResponse pagedListResponse = + client.searchDeploymentRevisions(parent, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchDeploymentRevisionsRequest actualRequest = + ((SearchDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchDeploymentRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + String query = "query107944136"; + client.searchDeploymentRevisions(parent, query); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardBlueprintChangesRequest actualRequest = + ((DiscardBlueprintChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardBlueprintChangesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardBlueprintChangesTest2() throws Exception { + DiscardBlueprintChangesResponse expectedResponse = + DiscardBlueprintChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + DiscardBlueprintChangesResponse actualResponse = client.discardBlueprintChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardBlueprintChangesRequest actualRequest = + ((DiscardBlueprintChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardBlueprintChangesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.discardBlueprintChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublicBlueprintsRequest actualRequest = + ((ListPublicBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublicBlueprintsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPublicBlueprintsTest2() throws Exception { + PublicBlueprint responsesElement = PublicBlueprint.newBuilder().build(); + ListPublicBlueprintsResponse expectedResponse = + ListPublicBlueprintsResponse.newBuilder() + .setNextPageToken("") + .addAllPublicBlueprints(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPublicBlueprintsPagedResponse pagedListResponse = client.listPublicBlueprints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublicBlueprintsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublicBlueprintsRequest actualRequest = + ((ListPublicBlueprintsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublicBlueprintsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPublicBlueprints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublicBlueprintRequest actualRequest = ((GetPublicBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPublicBlueprintExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPublicBlueprintTest2() throws Exception { + PublicBlueprint expectedResponse = + PublicBlueprint.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + PublicBlueprint actualResponse = client.getPublicBlueprint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublicBlueprintRequest actualRequest = ((GetPublicBlueprintRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPublicBlueprintExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getPublicBlueprint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Deployment actualResponse = client.updateDeployment(deployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDeploymentRequest actualRequest = ((UpdateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeployment(deployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentRequest actualRequest = ((GetDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentRequest actualRequest = ((GetDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + client.deleteDeployment(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentRequest actualRequest = ((DeleteDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDeployment(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentRequest actualRequest = ((DeleteDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + client.removeDeployment(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveDeploymentRequest actualRequest = ((RemoveDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void removeDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + client.removeDeployment(name); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveDeploymentRequest actualRequest = ((RemoveDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.removeDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentRevisionTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeleteDeploymentRevisionRequest request = + DeleteDeploymentRevisionRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + + Deployment actualResponse = client.deleteDeploymentRevision(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentRevisionRequest actualRequest = + ((DeleteDeploymentRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeleteDeploymentRevisionRequest request = + DeleteDeploymentRevisionRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + client.deleteDeploymentRevision(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentsRequest actualRequest = ((ListDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentsRequest actualRequest = ((ListDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentRevisionsRequest actualRequest = + ((ListDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentRevisionsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentRevisionsResponse expectedResponse = + ListDeploymentRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + ListDeploymentRevisionsPagedResponse pagedListResponse = client.listDeploymentRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentRevisionsRequest actualRequest = + ((ListDeploymentRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.listDeploymentRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardDeploymentChangesRequest actualRequest = + ((DiscardDeploymentChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardDeploymentChangesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void discardDeploymentChangesTest2() throws Exception { + DiscardDeploymentChangesResponse expectedResponse = + DiscardDeploymentChangesResponse.newBuilder().build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + DiscardDeploymentChangesResponse actualResponse = client.discardDeploymentChanges(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscardDeploymentChangesRequest actualRequest = + ((DiscardDeploymentChangesRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discardDeploymentChangesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.discardDeploymentChanges(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyDeploymentRequest actualRequest = ((ApplyDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.applyDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyDeploymentRequest actualRequest = ((ApplyDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.applyDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeDeploymentStatusRequest actualRequest = + ((ComputeDeploymentStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeDeploymentStatusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeDeploymentStatusTest2() throws Exception { + ComputeDeploymentStatusResponse expectedResponse = + ComputeDeploymentStatusResponse.newBuilder() + .setName("name3373707") + .setStatus(Status.forNumber(0)) + .addAllResourceStatuses(new ArrayList()) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + ComputeDeploymentStatusResponse actualResponse = client.computeDeploymentStatus(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeDeploymentStatusRequest actualRequest = + ((ComputeDeploymentStatusRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeDeploymentStatusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.computeDeploymentStatus(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackDeploymentRequest actualRequest = ((RollbackDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .setSourceBlueprintRevision("sourceBlueprintRevision-1125632845") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .setRepository("repository1950800714") + .addAllFiles(new ArrayList()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceProvider("sourceProvider1943963436") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + + Deployment actualResponse = client.rollbackDeployment(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackDeploymentRequest actualRequest = ((RollbackDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + client.rollbackDeployment(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHydratedDeploymentRequest actualRequest = + ((GetHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHydratedDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + HydratedDeployment actualResponse = client.getHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHydratedDeploymentRequest actualRequest = + ((GetHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHydratedDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.getHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHydratedDeploymentsRequest actualRequest = + ((ListHydratedDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHydratedDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHydratedDeploymentsTest2() throws Exception { + HydratedDeployment responsesElement = HydratedDeployment.newBuilder().build(); + ListHydratedDeploymentsResponse expectedResponse = + ListHydratedDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllHydratedDeployments(Arrays.asList(responsesElement)) + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListHydratedDeploymentsPagedResponse pagedListResponse = client.listHydratedDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHydratedDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHydratedDeploymentsRequest actualRequest = + ((ListHydratedDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHydratedDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String parent = "parent-995424086"; + client.listHydratedDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + HydratedDeployment actualResponse = + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateHydratedDeploymentRequest actualRequest = + ((UpdateHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(hydratedDeployment, actualRequest.getHydratedDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateHydratedDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHydratedDeployment(hydratedDeployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyHydratedDeploymentRequest actualRequest = + ((ApplyHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyHydratedDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void applyHydratedDeploymentTest2() throws Exception { + HydratedDeployment expectedResponse = + HydratedDeployment.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .addAllFiles(new ArrayList()) + .setWorkloadCluster("workloadCluster925665923") + .build(); + mockTelcoAutomation.addResponse(expectedResponse); + + String name = "name3373707"; + + HydratedDeployment actualResponse = client.applyHydratedDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTelcoAutomation.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyHydratedDeploymentRequest actualRequest = + ((ApplyHydratedDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void applyHydratedDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTelcoAutomation.addException(exception); + + try { + String name = "name3373707"; + client.applyHydratedDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml new file mode 100644 index 000000000000..b0c2cf1f441d --- /dev/null +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1 + 0.0.1-SNAPSHOT + grpc-google-cloud-telcoautomation-v1 + GRPC library for google-cloud-telcoautomation + + com.google.cloud + google-cloud-telcoautomation-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1 + + + com.google.guava + guava + + + \ No newline at end of file diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java new file mode 100644 index 000000000000..76e0a44180c2 --- /dev/null +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationGrpc.java @@ -0,0 +1,4734 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.telcoautomation.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * TelcoAutomation Service manages the control plane cluster a.k.a.
+ * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+ * exposes blueprint APIs which manages the lifecycle of blueprints that control
+ * the infrastructure setup (e.g GDCE clusters) and deployment of network
+ * functions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/telcoautomation/v1/telcoautomation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TelcoAutomationGrpc { + + private TelcoAutomationGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.telcoautomation.v1.TelcoAutomation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse> + getListOrchestrationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrchestrationClusters", + requestType = com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse> + getListOrchestrationClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse> + getListOrchestrationClustersMethod; + if ((getListOrchestrationClustersMethod = + TelcoAutomationGrpc.getListOrchestrationClustersMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListOrchestrationClustersMethod = + TelcoAutomationGrpc.getListOrchestrationClustersMethod) + == null) { + TelcoAutomationGrpc.getListOrchestrationClustersMethod = + getListOrchestrationClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOrchestrationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListOrchestrationClusters")) + .build(); + } + } + } + return getListOrchestrationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1.OrchestrationCluster> + getGetOrchestrationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrchestrationCluster", + requestType = com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest.class, + responseType = com.google.cloud.telcoautomation.v1.OrchestrationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1.OrchestrationCluster> + getGetOrchestrationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1.OrchestrationCluster> + getGetOrchestrationClusterMethod; + if ((getGetOrchestrationClusterMethod = TelcoAutomationGrpc.getGetOrchestrationClusterMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetOrchestrationClusterMethod = + TelcoAutomationGrpc.getGetOrchestrationClusterMethod) + == null) { + TelcoAutomationGrpc.getGetOrchestrationClusterMethod = + getGetOrchestrationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrchestrationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.OrchestrationCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetOrchestrationCluster")) + .build(); + } + } + } + return getGetOrchestrationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation> + getCreateOrchestrationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateOrchestrationCluster", + requestType = com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation> + getCreateOrchestrationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation> + getCreateOrchestrationClusterMethod; + if ((getCreateOrchestrationClusterMethod = + TelcoAutomationGrpc.getCreateOrchestrationClusterMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateOrchestrationClusterMethod = + TelcoAutomationGrpc.getCreateOrchestrationClusterMethod) + == null) { + TelcoAutomationGrpc.getCreateOrchestrationClusterMethod = + getCreateOrchestrationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateOrchestrationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateOrchestrationCluster")) + .build(); + } + } + } + return getCreateOrchestrationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation> + getDeleteOrchestrationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteOrchestrationCluster", + requestType = com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation> + getDeleteOrchestrationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation> + getDeleteOrchestrationClusterMethod; + if ((getDeleteOrchestrationClusterMethod = + TelcoAutomationGrpc.getDeleteOrchestrationClusterMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteOrchestrationClusterMethod = + TelcoAutomationGrpc.getDeleteOrchestrationClusterMethod) + == null) { + TelcoAutomationGrpc.getDeleteOrchestrationClusterMethod = + getDeleteOrchestrationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteOrchestrationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteOrchestrationCluster")) + .build(); + } + } + } + return getDeleteOrchestrationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse> + getListEdgeSlmsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEdgeSlms", + requestType = com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse> + getListEdgeSlmsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse> + getListEdgeSlmsMethod; + if ((getListEdgeSlmsMethod = TelcoAutomationGrpc.getListEdgeSlmsMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListEdgeSlmsMethod = TelcoAutomationGrpc.getListEdgeSlmsMethod) == null) { + TelcoAutomationGrpc.getListEdgeSlmsMethod = + getListEdgeSlmsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEdgeSlms")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListEdgeSlms")) + .build(); + } + } + } + return getListEdgeSlmsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1.EdgeSlm> + getGetEdgeSlmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEdgeSlm", + requestType = com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.class, + responseType = com.google.cloud.telcoautomation.v1.EdgeSlm.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1.EdgeSlm> + getGetEdgeSlmMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1.EdgeSlm> + getGetEdgeSlmMethod; + if ((getGetEdgeSlmMethod = TelcoAutomationGrpc.getGetEdgeSlmMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetEdgeSlmMethod = TelcoAutomationGrpc.getGetEdgeSlmMethod) == null) { + TelcoAutomationGrpc.getGetEdgeSlmMethod = + getGetEdgeSlmMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEdgeSlm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetEdgeSlm")) + .build(); + } + } + } + return getGetEdgeSlmMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest, + com.google.longrunning.Operation> + getCreateEdgeSlmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEdgeSlm", + requestType = com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest, + com.google.longrunning.Operation> + getCreateEdgeSlmMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest, + com.google.longrunning.Operation> + getCreateEdgeSlmMethod; + if ((getCreateEdgeSlmMethod = TelcoAutomationGrpc.getCreateEdgeSlmMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateEdgeSlmMethod = TelcoAutomationGrpc.getCreateEdgeSlmMethod) == null) { + TelcoAutomationGrpc.getCreateEdgeSlmMethod = + getCreateEdgeSlmMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEdgeSlm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateEdgeSlm")) + .build(); + } + } + } + return getCreateEdgeSlmMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation> + getDeleteEdgeSlmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEdgeSlm", + requestType = com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation> + getDeleteEdgeSlmMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation> + getDeleteEdgeSlmMethod; + if ((getDeleteEdgeSlmMethod = TelcoAutomationGrpc.getDeleteEdgeSlmMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteEdgeSlmMethod = TelcoAutomationGrpc.getDeleteEdgeSlmMethod) == null) { + TelcoAutomationGrpc.getDeleteEdgeSlmMethod = + getDeleteEdgeSlmMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEdgeSlm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteEdgeSlm")) + .build(); + } + } + } + return getDeleteEdgeSlmMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getCreateBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBlueprint", + requestType = com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getCreateBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getCreateBlueprintMethod; + if ((getCreateBlueprintMethod = TelcoAutomationGrpc.getCreateBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateBlueprintMethod = TelcoAutomationGrpc.getCreateBlueprintMethod) == null) { + TelcoAutomationGrpc.getCreateBlueprintMethod = + getCreateBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateBlueprint")) + .build(); + } + } + } + return getCreateBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getUpdateBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBlueprint", + requestType = com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getUpdateBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getUpdateBlueprintMethod; + if ((getUpdateBlueprintMethod = TelcoAutomationGrpc.getUpdateBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getUpdateBlueprintMethod = TelcoAutomationGrpc.getUpdateBlueprintMethod) == null) { + TelcoAutomationGrpc.getUpdateBlueprintMethod = + getUpdateBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("UpdateBlueprint")) + .build(); + } + } + } + return getUpdateBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getGetBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBlueprint", + requestType = com.google.cloud.telcoautomation.v1.GetBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getGetBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getGetBlueprintMethod; + if ((getGetBlueprintMethod = TelcoAutomationGrpc.getGetBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetBlueprintMethod = TelcoAutomationGrpc.getGetBlueprintMethod) == null) { + TelcoAutomationGrpc.getGetBlueprintMethod = + getGetBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetBlueprint")) + .build(); + } + } + } + return getGetBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest, com.google.protobuf.Empty> + getDeleteBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBlueprint", + requestType = com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest, com.google.protobuf.Empty> + getDeleteBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest, com.google.protobuf.Empty> + getDeleteBlueprintMethod; + if ((getDeleteBlueprintMethod = TelcoAutomationGrpc.getDeleteBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteBlueprintMethod = TelcoAutomationGrpc.getDeleteBlueprintMethod) == null) { + TelcoAutomationGrpc.getDeleteBlueprintMethod = + getDeleteBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteBlueprint")) + .build(); + } + } + } + return getDeleteBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse> + getListBlueprintsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBlueprints", + requestType = com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse> + getListBlueprintsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse> + getListBlueprintsMethod; + if ((getListBlueprintsMethod = TelcoAutomationGrpc.getListBlueprintsMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListBlueprintsMethod = TelcoAutomationGrpc.getListBlueprintsMethod) == null) { + TelcoAutomationGrpc.getListBlueprintsMethod = + getListBlueprintsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlueprints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListBlueprints")) + .build(); + } + } + } + return getListBlueprintsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getApproveBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveBlueprint", + requestType = com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getApproveBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getApproveBlueprintMethod; + if ((getApproveBlueprintMethod = TelcoAutomationGrpc.getApproveBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getApproveBlueprintMethod = TelcoAutomationGrpc.getApproveBlueprintMethod) == null) { + TelcoAutomationGrpc.getApproveBlueprintMethod = + getApproveBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ApproveBlueprint")) + .build(); + } + } + } + return getApproveBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getProposeBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ProposeBlueprint", + requestType = com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getProposeBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getProposeBlueprintMethod; + if ((getProposeBlueprintMethod = TelcoAutomationGrpc.getProposeBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getProposeBlueprintMethod = TelcoAutomationGrpc.getProposeBlueprintMethod) == null) { + TelcoAutomationGrpc.getProposeBlueprintMethod = + getProposeBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProposeBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ProposeBlueprint")) + .build(); + } + } + } + return getProposeBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getRejectBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RejectBlueprint", + requestType = com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getRejectBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint> + getRejectBlueprintMethod; + if ((getRejectBlueprintMethod = TelcoAutomationGrpc.getRejectBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getRejectBlueprintMethod = TelcoAutomationGrpc.getRejectBlueprintMethod) == null) { + TelcoAutomationGrpc.getRejectBlueprintMethod = + getRejectBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RejectBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("RejectBlueprint")) + .build(); + } + } + } + return getRejectBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse> + getListBlueprintRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBlueprintRevisions", + requestType = com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse> + getListBlueprintRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse> + getListBlueprintRevisionsMethod; + if ((getListBlueprintRevisionsMethod = TelcoAutomationGrpc.getListBlueprintRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListBlueprintRevisionsMethod = TelcoAutomationGrpc.getListBlueprintRevisionsMethod) + == null) { + TelcoAutomationGrpc.getListBlueprintRevisionsMethod = + getListBlueprintRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBlueprintRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListBlueprintRevisions")) + .build(); + } + } + } + return getListBlueprintRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse> + getSearchBlueprintRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchBlueprintRevisions", + requestType = com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse> + getSearchBlueprintRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse> + getSearchBlueprintRevisionsMethod; + if ((getSearchBlueprintRevisionsMethod = TelcoAutomationGrpc.getSearchBlueprintRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getSearchBlueprintRevisionsMethod = + TelcoAutomationGrpc.getSearchBlueprintRevisionsMethod) + == null) { + TelcoAutomationGrpc.getSearchBlueprintRevisionsMethod = + getSearchBlueprintRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchBlueprintRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("SearchBlueprintRevisions")) + .build(); + } + } + } + return getSearchBlueprintRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse> + getSearchDeploymentRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchDeploymentRevisions", + requestType = com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse> + getSearchDeploymentRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse> + getSearchDeploymentRevisionsMethod; + if ((getSearchDeploymentRevisionsMethod = + TelcoAutomationGrpc.getSearchDeploymentRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getSearchDeploymentRevisionsMethod = + TelcoAutomationGrpc.getSearchDeploymentRevisionsMethod) + == null) { + TelcoAutomationGrpc.getSearchDeploymentRevisionsMethod = + getSearchDeploymentRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchDeploymentRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("SearchDeploymentRevisions")) + .build(); + } + } + } + return getSearchDeploymentRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse> + getDiscardBlueprintChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscardBlueprintChanges", + requestType = com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest.class, + responseType = com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse> + getDiscardBlueprintChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse> + getDiscardBlueprintChangesMethod; + if ((getDiscardBlueprintChangesMethod = TelcoAutomationGrpc.getDiscardBlueprintChangesMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDiscardBlueprintChangesMethod = + TelcoAutomationGrpc.getDiscardBlueprintChangesMethod) + == null) { + TelcoAutomationGrpc.getDiscardBlueprintChangesMethod = + getDiscardBlueprintChangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiscardBlueprintChanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DiscardBlueprintChanges")) + .build(); + } + } + } + return getDiscardBlueprintChangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse> + getListPublicBlueprintsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPublicBlueprints", + requestType = com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse> + getListPublicBlueprintsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse> + getListPublicBlueprintsMethod; + if ((getListPublicBlueprintsMethod = TelcoAutomationGrpc.getListPublicBlueprintsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListPublicBlueprintsMethod = TelcoAutomationGrpc.getListPublicBlueprintsMethod) + == null) { + TelcoAutomationGrpc.getListPublicBlueprintsMethod = + getListPublicBlueprintsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPublicBlueprints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListPublicBlueprints")) + .build(); + } + } + } + return getListPublicBlueprintsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1.PublicBlueprint> + getGetPublicBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPublicBlueprint", + requestType = com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1.PublicBlueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1.PublicBlueprint> + getGetPublicBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1.PublicBlueprint> + getGetPublicBlueprintMethod; + if ((getGetPublicBlueprintMethod = TelcoAutomationGrpc.getGetPublicBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetPublicBlueprintMethod = TelcoAutomationGrpc.getGetPublicBlueprintMethod) + == null) { + TelcoAutomationGrpc.getGetPublicBlueprintMethod = + getGetPublicBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPublicBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.PublicBlueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetPublicBlueprint")) + .build(); + } + } + } + return getGetPublicBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getCreateDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeployment", + requestType = com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getCreateDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getCreateDeploymentMethod; + if ((getCreateDeploymentMethod = TelcoAutomationGrpc.getCreateDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateDeploymentMethod = TelcoAutomationGrpc.getCreateDeploymentMethod) == null) { + TelcoAutomationGrpc.getCreateDeploymentMethod = + getCreateDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateDeployment")) + .build(); + } + } + } + return getCreateDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getUpdateDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDeployment", + requestType = com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getUpdateDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getUpdateDeploymentMethod; + if ((getUpdateDeploymentMethod = TelcoAutomationGrpc.getUpdateDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getUpdateDeploymentMethod = TelcoAutomationGrpc.getUpdateDeploymentMethod) == null) { + TelcoAutomationGrpc.getUpdateDeploymentMethod = + getUpdateDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("UpdateDeployment")) + .build(); + } + } + } + return getUpdateDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getGetDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeployment", + requestType = com.google.cloud.telcoautomation.v1.GetDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getGetDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getGetDeploymentMethod; + if ((getGetDeploymentMethod = TelcoAutomationGrpc.getGetDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetDeploymentMethod = TelcoAutomationGrpc.getGetDeploymentMethod) == null) { + TelcoAutomationGrpc.getGetDeploymentMethod = + getGetDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetDeployment")) + .build(); + } + } + } + return getGetDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest, com.google.protobuf.Empty> + getRemoveDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveDeployment", + requestType = com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest, com.google.protobuf.Empty> + getRemoveDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest, com.google.protobuf.Empty> + getRemoveDeploymentMethod; + if ((getRemoveDeploymentMethod = TelcoAutomationGrpc.getRemoveDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getRemoveDeploymentMethod = TelcoAutomationGrpc.getRemoveDeploymentMethod) == null) { + TelcoAutomationGrpc.getRemoveDeploymentMethod = + getRemoveDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("RemoveDeployment")) + .build(); + } + } + } + return getRemoveDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse> + getListDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeployments", + requestType = com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse> + getListDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse> + getListDeploymentsMethod; + if ((getListDeploymentsMethod = TelcoAutomationGrpc.getListDeploymentsMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListDeploymentsMethod = TelcoAutomationGrpc.getListDeploymentsMethod) == null) { + TelcoAutomationGrpc.getListDeploymentsMethod = + getListDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListDeployments")) + .build(); + } + } + } + return getListDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse> + getListDeploymentRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeploymentRevisions", + requestType = com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse> + getListDeploymentRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse> + getListDeploymentRevisionsMethod; + if ((getListDeploymentRevisionsMethod = TelcoAutomationGrpc.getListDeploymentRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListDeploymentRevisionsMethod = + TelcoAutomationGrpc.getListDeploymentRevisionsMethod) + == null) { + TelcoAutomationGrpc.getListDeploymentRevisionsMethod = + getListDeploymentRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDeploymentRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListDeploymentRevisions")) + .build(); + } + } + } + return getListDeploymentRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse> + getDiscardDeploymentChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscardDeploymentChanges", + requestType = com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest.class, + responseType = com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse> + getDiscardDeploymentChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse> + getDiscardDeploymentChangesMethod; + if ((getDiscardDeploymentChangesMethod = TelcoAutomationGrpc.getDiscardDeploymentChangesMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDiscardDeploymentChangesMethod = + TelcoAutomationGrpc.getDiscardDeploymentChangesMethod) + == null) { + TelcoAutomationGrpc.getDiscardDeploymentChangesMethod = + getDiscardDeploymentChangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiscardDeploymentChanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DiscardDeploymentChanges")) + .build(); + } + } + } + return getDiscardDeploymentChangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getApplyDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyDeployment", + requestType = com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getApplyDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getApplyDeploymentMethod; + if ((getApplyDeploymentMethod = TelcoAutomationGrpc.getApplyDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getApplyDeploymentMethod = TelcoAutomationGrpc.getApplyDeploymentMethod) == null) { + TelcoAutomationGrpc.getApplyDeploymentMethod = + getApplyDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ApplyDeployment")) + .build(); + } + } + } + return getApplyDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse> + getComputeDeploymentStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeDeploymentStatus", + requestType = com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse> + getComputeDeploymentStatusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse> + getComputeDeploymentStatusMethod; + if ((getComputeDeploymentStatusMethod = TelcoAutomationGrpc.getComputeDeploymentStatusMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getComputeDeploymentStatusMethod = + TelcoAutomationGrpc.getComputeDeploymentStatusMethod) + == null) { + TelcoAutomationGrpc.getComputeDeploymentStatusMethod = + getComputeDeploymentStatusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ComputeDeploymentStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ComputeDeploymentStatus")) + .build(); + } + } + } + return getComputeDeploymentStatusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getRollbackDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackDeployment", + requestType = com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getRollbackDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment> + getRollbackDeploymentMethod; + if ((getRollbackDeploymentMethod = TelcoAutomationGrpc.getRollbackDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getRollbackDeploymentMethod = TelcoAutomationGrpc.getRollbackDeploymentMethod) + == null) { + TelcoAutomationGrpc.getRollbackDeploymentMethod = + getRollbackDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("RollbackDeployment")) + .build(); + } + } + } + return getRollbackDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getGetHydratedDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHydratedDeployment", + requestType = com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.HydratedDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getGetHydratedDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getGetHydratedDeploymentMethod; + if ((getGetHydratedDeploymentMethod = TelcoAutomationGrpc.getGetHydratedDeploymentMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetHydratedDeploymentMethod = TelcoAutomationGrpc.getGetHydratedDeploymentMethod) + == null) { + TelcoAutomationGrpc.getGetHydratedDeploymentMethod = + getGetHydratedDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetHydratedDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.HydratedDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetHydratedDeployment")) + .build(); + } + } + } + return getGetHydratedDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse> + getListHydratedDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHydratedDeployments", + requestType = com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest.class, + responseType = com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse> + getListHydratedDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse> + getListHydratedDeploymentsMethod; + if ((getListHydratedDeploymentsMethod = TelcoAutomationGrpc.getListHydratedDeploymentsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListHydratedDeploymentsMethod = + TelcoAutomationGrpc.getListHydratedDeploymentsMethod) + == null) { + TelcoAutomationGrpc.getListHydratedDeploymentsMethod = + getListHydratedDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListHydratedDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListHydratedDeployments")) + .build(); + } + } + } + return getListHydratedDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getUpdateHydratedDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHydratedDeployment", + requestType = com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.HydratedDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getUpdateHydratedDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getUpdateHydratedDeploymentMethod; + if ((getUpdateHydratedDeploymentMethod = TelcoAutomationGrpc.getUpdateHydratedDeploymentMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getUpdateHydratedDeploymentMethod = + TelcoAutomationGrpc.getUpdateHydratedDeploymentMethod) + == null) { + TelcoAutomationGrpc.getUpdateHydratedDeploymentMethod = + getUpdateHydratedDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateHydratedDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.HydratedDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("UpdateHydratedDeployment")) + .build(); + } + } + } + return getUpdateHydratedDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getApplyHydratedDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyHydratedDeployment", + requestType = com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1.HydratedDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getApplyHydratedDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getApplyHydratedDeploymentMethod; + if ((getApplyHydratedDeploymentMethod = TelcoAutomationGrpc.getApplyHydratedDeploymentMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getApplyHydratedDeploymentMethod = + TelcoAutomationGrpc.getApplyHydratedDeploymentMethod) + == null) { + TelcoAutomationGrpc.getApplyHydratedDeploymentMethod = + getApplyHydratedDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ApplyHydratedDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1.HydratedDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ApplyHydratedDeployment")) + .build(); + } + } + } + return getApplyHydratedDeploymentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TelcoAutomationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TelcoAutomationStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationStub(channel, callOptions); + } + }; + return TelcoAutomationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TelcoAutomationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TelcoAutomationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationBlockingStub(channel, callOptions); + } + }; + return TelcoAutomationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TelcoAutomationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TelcoAutomationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationFutureStub(channel, callOptions); + } + }; + return TelcoAutomationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + default void listOrchestrationClusters( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOrchestrationClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + default void getOrchestrationCluster( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrchestrationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + default void createOrchestrationCluster( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOrchestrationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + default void deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOrchestrationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + default void listEdgeSlms( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEdgeSlmsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + default void getEdgeSlm( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEdgeSlmMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + default void createEdgeSlm( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEdgeSlmMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + default void deleteEdgeSlm( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEdgeSlmMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + default void createBlueprint( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + default void updateBlueprint( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + default void getBlueprint( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + default void deleteBlueprint( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + default void listBlueprints( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBlueprintsMethod(), responseObserver); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + default void approveBlueprint( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + default void proposeBlueprint( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProposeBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + default void rejectBlueprint( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRejectBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + default void listBlueprintRevisions( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBlueprintRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + default void searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchBlueprintRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + default void searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchDeploymentRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + default void discardBlueprintChanges( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiscardBlueprintChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + default void listPublicBlueprints( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPublicBlueprintsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + default void getPublicBlueprint( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPublicBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + default void createDeployment( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + default void updateDeployment( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + default void getDeployment( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + default void removeDeployment( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + default void listDeployments( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + default void listDeploymentRevisions( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + default void discardDeploymentChanges( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiscardDeploymentChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + default void applyDeployment( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + default void computeDeploymentStatus( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeDeploymentStatusMethod(), responseObserver); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + default void rollbackDeployment( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + default void getHydratedDeployment( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHydratedDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + default void listHydratedDeployments( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHydratedDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + default void updateHydratedDeployment( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateHydratedDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + default void applyHydratedDeployment( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyHydratedDeploymentMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public abstract static class TelcoAutomationImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TelcoAutomationGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public static final class TelcoAutomationStub + extends io.grpc.stub.AbstractAsyncStub { + private TelcoAutomationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TelcoAutomationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + public void listOrchestrationClusters( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrchestrationClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + public void getOrchestrationCluster( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrchestrationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + public void createOrchestrationCluster( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOrchestrationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + public void deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOrchestrationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + public void listEdgeSlms( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEdgeSlmsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + public void getEdgeSlm( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEdgeSlmMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + public void createEdgeSlm( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEdgeSlmMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + public void deleteEdgeSlm( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEdgeSlmMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + public void createBlueprint( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + public void updateBlueprint( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + public void getBlueprint( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + public void deleteBlueprint( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + public void listBlueprints( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBlueprintsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + public void approveBlueprint( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApproveBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + public void proposeBlueprint( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProposeBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + public void rejectBlueprint( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRejectBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + public void listBlueprintRevisions( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBlueprintRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + public void searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchBlueprintRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + public void searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchDeploymentRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + public void discardBlueprintChanges( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscardBlueprintChangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + public void listPublicBlueprints( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPublicBlueprintsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + public void getPublicBlueprint( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPublicBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + public void createDeployment( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + public void updateDeployment( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + public void getDeployment( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + public void removeDeployment( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + public void listDeployments( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + public void listDeploymentRevisions( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + public void discardDeploymentChanges( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscardDeploymentChangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + public void applyDeployment( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + public void computeDeploymentStatus( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeDeploymentStatusMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + public void rollbackDeployment( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + public void getHydratedDeployment( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHydratedDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + public void listHydratedDeployments( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHydratedDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + public void updateHydratedDeployment( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHydratedDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + public void applyHydratedDeployment( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyHydratedDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public static final class TelcoAutomationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TelcoAutomationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TelcoAutomationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + listOrchestrationClusters( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrchestrationClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationCluster( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrchestrationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createOrchestrationCluster( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateOrchestrationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteOrchestrationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse listEdgeSlms( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEdgeSlmsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlm( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEdgeSlmMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createEdgeSlm( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEdgeSlmMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + public com.google.longrunning.Operation deleteEdgeSlm( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEdgeSlmMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Blueprint createBlueprint( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Blueprint updateBlueprint( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + public com.google.protobuf.Empty deleteBlueprint( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListBlueprintsResponse listBlueprints( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBlueprintsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Blueprint approveBlueprint( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Blueprint proposeBlueprint( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProposeBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Blueprint rejectBlueprint( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRejectBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + listBlueprintRevisions( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBlueprintRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchBlueprintRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchDeploymentRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + discardBlueprintChanges( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscardBlueprintChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse listPublicBlueprints( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPublicBlueprintsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.PublicBlueprint getPublicBlueprint( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPublicBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Deployment createDeployment( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Deployment updateDeployment( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Deployment getDeployment( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + public com.google.protobuf.Empty removeDeployment( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse listDeployments( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + listDeploymentRevisions( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + discardDeploymentChanges( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscardDeploymentChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Deployment applyDeployment( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + computeDeploymentStatus( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeDeploymentStatusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.Deployment rollbackDeployment( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployment( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHydratedDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + listHydratedDeployments( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHydratedDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment updateHydratedDeployment( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHydratedDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment applyHydratedDeployment( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyHydratedDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public static final class TelcoAutomationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TelcoAutomationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TelcoAutomationFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse> + listOrchestrationClusters( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrchestrationClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.OrchestrationCluster> + getOrchestrationCluster( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrchestrationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createOrchestrationCluster( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateOrchestrationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteOrchestrationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse> + listEdgeSlms(com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEdgeSlmsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.EdgeSlm> + getEdgeSlm(com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEdgeSlmMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createEdgeSlm(com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEdgeSlmMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEdgeSlm(com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEdgeSlmMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Blueprint> + createBlueprint(com.google.cloud.telcoautomation.v1.CreateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Blueprint> + updateBlueprint(com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Blueprint> + getBlueprint(com.google.cloud.telcoautomation.v1.GetBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBlueprint(com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse> + listBlueprints(com.google.cloud.telcoautomation.v1.ListBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBlueprintsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Blueprint> + approveBlueprint(com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Blueprint> + proposeBlueprint(com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProposeBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Blueprint> + rejectBlueprint(com.google.cloud.telcoautomation.v1.RejectBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRejectBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse> + listBlueprintRevisions( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBlueprintRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse> + searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchBlueprintRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse> + searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchDeploymentRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse> + discardBlueprintChanges( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscardBlueprintChangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse> + listPublicBlueprints( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPublicBlueprintsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.PublicBlueprint> + getPublicBlueprint(com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPublicBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Deployment> + createDeployment(com.google.cloud.telcoautomation.v1.CreateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Deployment> + updateDeployment(com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Deployment> + getDeployment(com.google.cloud.telcoautomation.v1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + removeDeployment(com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse> + listDeployments(com.google.cloud.telcoautomation.v1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse> + listDeploymentRevisions( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse> + discardDeploymentChanges( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscardDeploymentChangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Deployment> + applyDeployment(com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse> + computeDeploymentStatus( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeDeploymentStatusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.Deployment> + rollbackDeployment(com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.HydratedDeployment> + getHydratedDeployment( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHydratedDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse> + listHydratedDeployments( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHydratedDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.HydratedDeployment> + updateHydratedDeployment( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHydratedDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1.HydratedDeployment> + applyHydratedDeployment( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyHydratedDeploymentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ORCHESTRATION_CLUSTERS = 0; + private static final int METHODID_GET_ORCHESTRATION_CLUSTER = 1; + private static final int METHODID_CREATE_ORCHESTRATION_CLUSTER = 2; + private static final int METHODID_DELETE_ORCHESTRATION_CLUSTER = 3; + private static final int METHODID_LIST_EDGE_SLMS = 4; + private static final int METHODID_GET_EDGE_SLM = 5; + private static final int METHODID_CREATE_EDGE_SLM = 6; + private static final int METHODID_DELETE_EDGE_SLM = 7; + private static final int METHODID_CREATE_BLUEPRINT = 8; + private static final int METHODID_UPDATE_BLUEPRINT = 9; + private static final int METHODID_GET_BLUEPRINT = 10; + private static final int METHODID_DELETE_BLUEPRINT = 11; + private static final int METHODID_LIST_BLUEPRINTS = 12; + private static final int METHODID_APPROVE_BLUEPRINT = 13; + private static final int METHODID_PROPOSE_BLUEPRINT = 14; + private static final int METHODID_REJECT_BLUEPRINT = 15; + private static final int METHODID_LIST_BLUEPRINT_REVISIONS = 16; + private static final int METHODID_SEARCH_BLUEPRINT_REVISIONS = 17; + private static final int METHODID_SEARCH_DEPLOYMENT_REVISIONS = 18; + private static final int METHODID_DISCARD_BLUEPRINT_CHANGES = 19; + private static final int METHODID_LIST_PUBLIC_BLUEPRINTS = 20; + private static final int METHODID_GET_PUBLIC_BLUEPRINT = 21; + private static final int METHODID_CREATE_DEPLOYMENT = 22; + private static final int METHODID_UPDATE_DEPLOYMENT = 23; + private static final int METHODID_GET_DEPLOYMENT = 24; + private static final int METHODID_REMOVE_DEPLOYMENT = 25; + private static final int METHODID_LIST_DEPLOYMENTS = 26; + private static final int METHODID_LIST_DEPLOYMENT_REVISIONS = 27; + private static final int METHODID_DISCARD_DEPLOYMENT_CHANGES = 28; + private static final int METHODID_APPLY_DEPLOYMENT = 29; + private static final int METHODID_COMPUTE_DEPLOYMENT_STATUS = 30; + private static final int METHODID_ROLLBACK_DEPLOYMENT = 31; + private static final int METHODID_GET_HYDRATED_DEPLOYMENT = 32; + private static final int METHODID_LIST_HYDRATED_DEPLOYMENTS = 33; + private static final int METHODID_UPDATE_HYDRATED_DEPLOYMENT = 34; + private static final int METHODID_APPLY_HYDRATED_DEPLOYMENT = 35; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_ORCHESTRATION_CLUSTERS: + serviceImpl.listOrchestrationClusters( + (com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse>) + responseObserver); + break; + case METHODID_GET_ORCHESTRATION_CLUSTER: + serviceImpl.getOrchestrationCluster( + (com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.OrchestrationCluster>) + responseObserver); + break; + case METHODID_CREATE_ORCHESTRATION_CLUSTER: + serviceImpl.createOrchestrationCluster( + (com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ORCHESTRATION_CLUSTER: + serviceImpl.deleteOrchestrationCluster( + (com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EDGE_SLMS: + serviceImpl.listEdgeSlms( + (com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse>) + responseObserver); + break; + case METHODID_GET_EDGE_SLM: + serviceImpl.getEdgeSlm( + (com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EDGE_SLM: + serviceImpl.createEdgeSlm( + (com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EDGE_SLM: + serviceImpl.deleteEdgeSlm( + (com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BLUEPRINT: + serviceImpl.createBlueprint( + (com.google.cloud.telcoautomation.v1.CreateBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_BLUEPRINT: + serviceImpl.updateBlueprint( + (com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BLUEPRINT: + serviceImpl.getBlueprint( + (com.google.cloud.telcoautomation.v1.GetBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BLUEPRINT: + serviceImpl.deleteBlueprint( + (com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BLUEPRINTS: + serviceImpl.listBlueprints( + (com.google.cloud.telcoautomation.v1.ListBlueprintsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse>) + responseObserver); + break; + case METHODID_APPROVE_BLUEPRINT: + serviceImpl.approveBlueprint( + (com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PROPOSE_BLUEPRINT: + serviceImpl.proposeBlueprint( + (com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REJECT_BLUEPRINT: + serviceImpl.rejectBlueprint( + (com.google.cloud.telcoautomation.v1.RejectBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BLUEPRINT_REVISIONS: + serviceImpl.listBlueprintRevisions( + (com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse>) + responseObserver); + break; + case METHODID_SEARCH_BLUEPRINT_REVISIONS: + serviceImpl.searchBlueprintRevisions( + (com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse>) + responseObserver); + break; + case METHODID_SEARCH_DEPLOYMENT_REVISIONS: + serviceImpl.searchDeploymentRevisions( + (com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse>) + responseObserver); + break; + case METHODID_DISCARD_BLUEPRINT_CHANGES: + serviceImpl.discardBlueprintChanges( + (com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse>) + responseObserver); + break; + case METHODID_LIST_PUBLIC_BLUEPRINTS: + serviceImpl.listPublicBlueprints( + (com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse>) + responseObserver); + break; + case METHODID_GET_PUBLIC_BLUEPRINT: + serviceImpl.getPublicBlueprint( + (com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DEPLOYMENT: + serviceImpl.createDeployment( + (com.google.cloud.telcoautomation.v1.CreateDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DEPLOYMENT: + serviceImpl.updateDeployment( + (com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DEPLOYMENT: + serviceImpl.getDeployment( + (com.google.cloud.telcoautomation.v1.GetDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REMOVE_DEPLOYMENT: + serviceImpl.removeDeployment( + (com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEPLOYMENTS: + serviceImpl.listDeployments( + (com.google.cloud.telcoautomation.v1.ListDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse>) + responseObserver); + break; + case METHODID_LIST_DEPLOYMENT_REVISIONS: + serviceImpl.listDeploymentRevisions( + (com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse>) + responseObserver); + break; + case METHODID_DISCARD_DEPLOYMENT_CHANGES: + serviceImpl.discardDeploymentChanges( + (com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse>) + responseObserver); + break; + case METHODID_APPLY_DEPLOYMENT: + serviceImpl.applyDeployment( + (com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COMPUTE_DEPLOYMENT_STATUS: + serviceImpl.computeDeploymentStatus( + (com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse>) + responseObserver); + break; + case METHODID_ROLLBACK_DEPLOYMENT: + serviceImpl.rollbackDeployment( + (com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_HYDRATED_DEPLOYMENT: + serviceImpl.getHydratedDeployment( + (com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_HYDRATED_DEPLOYMENTS: + serviceImpl.listHydratedDeployments( + (com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse>) + responseObserver); + break; + case METHODID_UPDATE_HYDRATED_DEPLOYMENT: + serviceImpl.updateHydratedDeployment( + (com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_APPLY_HYDRATED_DEPLOYMENT: + serviceImpl.applyHydratedDeployment( + (com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListOrchestrationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse>( + service, METHODID_LIST_ORCHESTRATION_CLUSTERS))) + .addMethod( + getGetOrchestrationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1.OrchestrationCluster>( + service, METHODID_GET_ORCHESTRATION_CLUSTER))) + .addMethod( + getCreateOrchestrationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_ORCHESTRATION_CLUSTER))) + .addMethod( + getDeleteOrchestrationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_ORCHESTRATION_CLUSTER))) + .addMethod( + getListEdgeSlmsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse>( + service, METHODID_LIST_EDGE_SLMS))) + .addMethod( + getGetEdgeSlmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1.EdgeSlm>(service, METHODID_GET_EDGE_SLM))) + .addMethod( + getCreateEdgeSlmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EDGE_SLM))) + .addMethod( + getDeleteEdgeSlmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_EDGE_SLM))) + .addMethod( + getCreateBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint>( + service, METHODID_CREATE_BLUEPRINT))) + .addMethod( + getUpdateBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint>( + service, METHODID_UPDATE_BLUEPRINT))) + .addMethod( + getGetBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint>( + service, METHODID_GET_BLUEPRINT))) + .addMethod( + getDeleteBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_BLUEPRINT))) + .addMethod( + getListBlueprintsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse>( + service, METHODID_LIST_BLUEPRINTS))) + .addMethod( + getApproveBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint>( + service, METHODID_APPROVE_BLUEPRINT))) + .addMethod( + getProposeBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint>( + service, METHODID_PROPOSE_BLUEPRINT))) + .addMethod( + getRejectBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1.Blueprint>( + service, METHODID_REJECT_BLUEPRINT))) + .addMethod( + getListBlueprintRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse>( + service, METHODID_LIST_BLUEPRINT_REVISIONS))) + .addMethod( + getSearchBlueprintRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse>( + service, METHODID_SEARCH_BLUEPRINT_REVISIONS))) + .addMethod( + getSearchDeploymentRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse>( + service, METHODID_SEARCH_DEPLOYMENT_REVISIONS))) + .addMethod( + getDiscardBlueprintChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse>( + service, METHODID_DISCARD_BLUEPRINT_CHANGES))) + .addMethod( + getListPublicBlueprintsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse>( + service, METHODID_LIST_PUBLIC_BLUEPRINTS))) + .addMethod( + getGetPublicBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1.PublicBlueprint>( + service, METHODID_GET_PUBLIC_BLUEPRINT))) + .addMethod( + getCreateDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment>( + service, METHODID_CREATE_DEPLOYMENT))) + .addMethod( + getUpdateDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment>( + service, METHODID_UPDATE_DEPLOYMENT))) + .addMethod( + getGetDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment>( + service, METHODID_GET_DEPLOYMENT))) + .addMethod( + getRemoveDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest, + com.google.protobuf.Empty>(service, METHODID_REMOVE_DEPLOYMENT))) + .addMethod( + getListDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse>( + service, METHODID_LIST_DEPLOYMENTS))) + .addMethod( + getListDeploymentRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse>( + service, METHODID_LIST_DEPLOYMENT_REVISIONS))) + .addMethod( + getDiscardDeploymentChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse>( + service, METHODID_DISCARD_DEPLOYMENT_CHANGES))) + .addMethod( + getApplyDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment>( + service, METHODID_APPLY_DEPLOYMENT))) + .addMethod( + getComputeDeploymentStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse>( + service, METHODID_COMPUTE_DEPLOYMENT_STATUS))) + .addMethod( + getRollbackDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1.Deployment>( + service, METHODID_ROLLBACK_DEPLOYMENT))) + .addMethod( + getGetHydratedDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment>( + service, METHODID_GET_HYDRATED_DEPLOYMENT))) + .addMethod( + getListHydratedDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse>( + service, METHODID_LIST_HYDRATED_DEPLOYMENTS))) + .addMethod( + getUpdateHydratedDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment>( + service, METHODID_UPDATE_HYDRATED_DEPLOYMENT))) + .addMethod( + getApplyHydratedDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1.HydratedDeployment>( + service, METHODID_APPLY_HYDRATED_DEPLOYMENT))) + .build(); + } + + private abstract static class TelcoAutomationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TelcoAutomationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TelcoAutomation"); + } + } + + private static final class TelcoAutomationFileDescriptorSupplier + extends TelcoAutomationBaseDescriptorSupplier { + TelcoAutomationFileDescriptorSupplier() {} + } + + private static final class TelcoAutomationMethodDescriptorSupplier + extends TelcoAutomationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + TelcoAutomationMethodDescriptorSupplier(java.lang.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 (TelcoAutomationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TelcoAutomationFileDescriptorSupplier()) + .addMethod(getListOrchestrationClustersMethod()) + .addMethod(getGetOrchestrationClusterMethod()) + .addMethod(getCreateOrchestrationClusterMethod()) + .addMethod(getDeleteOrchestrationClusterMethod()) + .addMethod(getListEdgeSlmsMethod()) + .addMethod(getGetEdgeSlmMethod()) + .addMethod(getCreateEdgeSlmMethod()) + .addMethod(getDeleteEdgeSlmMethod()) + .addMethod(getCreateBlueprintMethod()) + .addMethod(getUpdateBlueprintMethod()) + .addMethod(getGetBlueprintMethod()) + .addMethod(getDeleteBlueprintMethod()) + .addMethod(getListBlueprintsMethod()) + .addMethod(getApproveBlueprintMethod()) + .addMethod(getProposeBlueprintMethod()) + .addMethod(getRejectBlueprintMethod()) + .addMethod(getListBlueprintRevisionsMethod()) + .addMethod(getSearchBlueprintRevisionsMethod()) + .addMethod(getSearchDeploymentRevisionsMethod()) + .addMethod(getDiscardBlueprintChangesMethod()) + .addMethod(getListPublicBlueprintsMethod()) + .addMethod(getGetPublicBlueprintMethod()) + .addMethod(getCreateDeploymentMethod()) + .addMethod(getUpdateDeploymentMethod()) + .addMethod(getGetDeploymentMethod()) + .addMethod(getRemoveDeploymentMethod()) + .addMethod(getListDeploymentsMethod()) + .addMethod(getListDeploymentRevisionsMethod()) + .addMethod(getDiscardDeploymentChangesMethod()) + .addMethod(getApplyDeploymentMethod()) + .addMethod(getComputeDeploymentStatusMethod()) + .addMethod(getRollbackDeploymentMethod()) + .addMethod(getGetHydratedDeploymentMethod()) + .addMethod(getListHydratedDeploymentsMethod()) + .addMethod(getUpdateHydratedDeploymentMethod()) + .addMethod(getApplyHydratedDeploymentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml new file mode 100644 index 000000000000..158d4cfd6b56 --- /dev/null +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1alpha1 + 0.0.1-SNAPSHOT + grpc-google-cloud-telcoautomation-v1alpha1 + GRPC library for google-cloud-telcoautomation + + com.google.cloud + google-cloud-telcoautomation-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1alpha1 + + + com.google.guava + guava + + + \ No newline at end of file diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java new file mode 100644 index 000000000000..9c55cbe1dfa0 --- /dev/null +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationGrpc.java @@ -0,0 +1,5155 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.telcoautomation.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * TelcoAutomation Service manages the control plane cluster a.k.a.
+ * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+ * exposes blueprint APIs which manages the lifecycle of blueprints that control
+ * the infrastructure setup (e.g GDCE clusters) and deployment of network
+ * functions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TelcoAutomationGrpc { + + private TelcoAutomationGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.telcoautomation.v1alpha1.TelcoAutomation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse> + getListOrchestrationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrchestrationClusters", + requestType = + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse> + getListOrchestrationClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse> + getListOrchestrationClustersMethod; + if ((getListOrchestrationClustersMethod = + TelcoAutomationGrpc.getListOrchestrationClustersMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListOrchestrationClustersMethod = + TelcoAutomationGrpc.getListOrchestrationClustersMethod) + == null) { + TelcoAutomationGrpc.getListOrchestrationClustersMethod = + getListOrchestrationClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOrchestrationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListOrchestrationClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListOrchestrationClustersResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListOrchestrationClusters")) + .build(); + } + } + } + return getListOrchestrationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster> + getGetOrchestrationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrchestrationCluster", + requestType = com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster> + getGetOrchestrationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster> + getGetOrchestrationClusterMethod; + if ((getGetOrchestrationClusterMethod = TelcoAutomationGrpc.getGetOrchestrationClusterMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetOrchestrationClusterMethod = + TelcoAutomationGrpc.getGetOrchestrationClusterMethod) + == null) { + TelcoAutomationGrpc.getGetOrchestrationClusterMethod = + getGetOrchestrationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrchestrationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .GetOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetOrchestrationCluster")) + .build(); + } + } + } + return getGetOrchestrationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation> + getCreateOrchestrationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateOrchestrationCluster", + requestType = + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation> + getCreateOrchestrationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation> + getCreateOrchestrationClusterMethod; + if ((getCreateOrchestrationClusterMethod = + TelcoAutomationGrpc.getCreateOrchestrationClusterMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateOrchestrationClusterMethod = + TelcoAutomationGrpc.getCreateOrchestrationClusterMethod) + == null) { + TelcoAutomationGrpc.getCreateOrchestrationClusterMethod = + getCreateOrchestrationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateOrchestrationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .CreateOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateOrchestrationCluster")) + .build(); + } + } + } + return getCreateOrchestrationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation> + getDeleteOrchestrationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteOrchestrationCluster", + requestType = + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation> + getDeleteOrchestrationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation> + getDeleteOrchestrationClusterMethod; + if ((getDeleteOrchestrationClusterMethod = + TelcoAutomationGrpc.getDeleteOrchestrationClusterMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteOrchestrationClusterMethod = + TelcoAutomationGrpc.getDeleteOrchestrationClusterMethod) + == null) { + TelcoAutomationGrpc.getDeleteOrchestrationClusterMethod = + getDeleteOrchestrationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteOrchestrationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DeleteOrchestrationClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteOrchestrationCluster")) + .build(); + } + } + } + return getDeleteOrchestrationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse> + getListEdgeSlmsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEdgeSlms", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse> + getListEdgeSlmsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse> + getListEdgeSlmsMethod; + if ((getListEdgeSlmsMethod = TelcoAutomationGrpc.getListEdgeSlmsMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListEdgeSlmsMethod = TelcoAutomationGrpc.getListEdgeSlmsMethod) == null) { + TelcoAutomationGrpc.getListEdgeSlmsMethod = + getListEdgeSlmsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEdgeSlms")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListEdgeSlms")) + .build(); + } + } + } + return getListEdgeSlmsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm> + getGetEdgeSlmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEdgeSlm", + requestType = com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm> + getGetEdgeSlmMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm> + getGetEdgeSlmMethod; + if ((getGetEdgeSlmMethod = TelcoAutomationGrpc.getGetEdgeSlmMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetEdgeSlmMethod = TelcoAutomationGrpc.getGetEdgeSlmMethod) == null) { + TelcoAutomationGrpc.getGetEdgeSlmMethod = + getGetEdgeSlmMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEdgeSlm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetEdgeSlm")) + .build(); + } + } + } + return getGetEdgeSlmMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest, + com.google.longrunning.Operation> + getCreateEdgeSlmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEdgeSlm", + requestType = com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest, + com.google.longrunning.Operation> + getCreateEdgeSlmMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest, + com.google.longrunning.Operation> + getCreateEdgeSlmMethod; + if ((getCreateEdgeSlmMethod = TelcoAutomationGrpc.getCreateEdgeSlmMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateEdgeSlmMethod = TelcoAutomationGrpc.getCreateEdgeSlmMethod) == null) { + TelcoAutomationGrpc.getCreateEdgeSlmMethod = + getCreateEdgeSlmMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEdgeSlm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateEdgeSlm")) + .build(); + } + } + } + return getCreateEdgeSlmMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation> + getDeleteEdgeSlmMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEdgeSlm", + requestType = com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation> + getDeleteEdgeSlmMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation> + getDeleteEdgeSlmMethod; + if ((getDeleteEdgeSlmMethod = TelcoAutomationGrpc.getDeleteEdgeSlmMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteEdgeSlmMethod = TelcoAutomationGrpc.getDeleteEdgeSlmMethod) == null) { + TelcoAutomationGrpc.getDeleteEdgeSlmMethod = + getDeleteEdgeSlmMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEdgeSlm")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteEdgeSlm")) + .build(); + } + } + } + return getDeleteEdgeSlmMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getCreateBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getCreateBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getCreateBlueprintMethod; + if ((getCreateBlueprintMethod = TelcoAutomationGrpc.getCreateBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateBlueprintMethod = TelcoAutomationGrpc.getCreateBlueprintMethod) == null) { + TelcoAutomationGrpc.getCreateBlueprintMethod = + getCreateBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateBlueprint")) + .build(); + } + } + } + return getCreateBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getUpdateBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getUpdateBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getUpdateBlueprintMethod; + if ((getUpdateBlueprintMethod = TelcoAutomationGrpc.getUpdateBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getUpdateBlueprintMethod = TelcoAutomationGrpc.getUpdateBlueprintMethod) == null) { + TelcoAutomationGrpc.getUpdateBlueprintMethod = + getUpdateBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("UpdateBlueprint")) + .build(); + } + } + } + return getUpdateBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getGetBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getGetBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getGetBlueprintMethod; + if ((getGetBlueprintMethod = TelcoAutomationGrpc.getGetBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetBlueprintMethod = TelcoAutomationGrpc.getGetBlueprintMethod) == null) { + TelcoAutomationGrpc.getGetBlueprintMethod = + getGetBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetBlueprint")) + .build(); + } + } + } + return getGetBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest, + com.google.protobuf.Empty> + getDeleteBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest, + com.google.protobuf.Empty> + getDeleteBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest, + com.google.protobuf.Empty> + getDeleteBlueprintMethod; + if ((getDeleteBlueprintMethod = TelcoAutomationGrpc.getDeleteBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteBlueprintMethod = TelcoAutomationGrpc.getDeleteBlueprintMethod) == null) { + TelcoAutomationGrpc.getDeleteBlueprintMethod = + getDeleteBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteBlueprint")) + .build(); + } + } + } + return getDeleteBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getDeleteBlueprintRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBlueprintRevision", + requestType = com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getDeleteBlueprintRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getDeleteBlueprintRevisionMethod; + if ((getDeleteBlueprintRevisionMethod = TelcoAutomationGrpc.getDeleteBlueprintRevisionMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteBlueprintRevisionMethod = + TelcoAutomationGrpc.getDeleteBlueprintRevisionMethod) + == null) { + TelcoAutomationGrpc.getDeleteBlueprintRevisionMethod = + getDeleteBlueprintRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteBlueprintRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DeleteBlueprintRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteBlueprintRevision")) + .build(); + } + } + } + return getDeleteBlueprintRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse> + getListBlueprintsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBlueprints", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse> + getListBlueprintsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse> + getListBlueprintsMethod; + if ((getListBlueprintsMethod = TelcoAutomationGrpc.getListBlueprintsMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListBlueprintsMethod = TelcoAutomationGrpc.getListBlueprintsMethod) == null) { + TelcoAutomationGrpc.getListBlueprintsMethod = + getListBlueprintsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlueprints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListBlueprints")) + .build(); + } + } + } + return getListBlueprintsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getApproveBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getApproveBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getApproveBlueprintMethod; + if ((getApproveBlueprintMethod = TelcoAutomationGrpc.getApproveBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getApproveBlueprintMethod = TelcoAutomationGrpc.getApproveBlueprintMethod) == null) { + TelcoAutomationGrpc.getApproveBlueprintMethod = + getApproveBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ApproveBlueprint")) + .build(); + } + } + } + return getApproveBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getProposeBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ProposeBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getProposeBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getProposeBlueprintMethod; + if ((getProposeBlueprintMethod = TelcoAutomationGrpc.getProposeBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getProposeBlueprintMethod = TelcoAutomationGrpc.getProposeBlueprintMethod) == null) { + TelcoAutomationGrpc.getProposeBlueprintMethod = + getProposeBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProposeBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ProposeBlueprint")) + .build(); + } + } + } + return getProposeBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getRejectBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RejectBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getRejectBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getRejectBlueprintMethod; + if ((getRejectBlueprintMethod = TelcoAutomationGrpc.getRejectBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getRejectBlueprintMethod = TelcoAutomationGrpc.getRejectBlueprintMethod) == null) { + TelcoAutomationGrpc.getRejectBlueprintMethod = + getRejectBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RejectBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Blueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("RejectBlueprint")) + .build(); + } + } + } + return getRejectBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse> + getListBlueprintRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBlueprintRevisions", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse> + getListBlueprintRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse> + getListBlueprintRevisionsMethod; + if ((getListBlueprintRevisionsMethod = TelcoAutomationGrpc.getListBlueprintRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListBlueprintRevisionsMethod = TelcoAutomationGrpc.getListBlueprintRevisionsMethod) + == null) { + TelcoAutomationGrpc.getListBlueprintRevisionsMethod = + getListBlueprintRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBlueprintRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListBlueprintRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListBlueprintRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListBlueprintRevisions")) + .build(); + } + } + } + return getListBlueprintRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse> + getSearchBlueprintRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchBlueprintRevisions", + requestType = com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse> + getSearchBlueprintRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse> + getSearchBlueprintRevisionsMethod; + if ((getSearchBlueprintRevisionsMethod = TelcoAutomationGrpc.getSearchBlueprintRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getSearchBlueprintRevisionsMethod = + TelcoAutomationGrpc.getSearchBlueprintRevisionsMethod) + == null) { + TelcoAutomationGrpc.getSearchBlueprintRevisionsMethod = + getSearchBlueprintRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchBlueprintRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .SearchBlueprintRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .SearchBlueprintRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("SearchBlueprintRevisions")) + .build(); + } + } + } + return getSearchBlueprintRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse> + getSearchDeploymentRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchDeploymentRevisions", + requestType = + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse> + getSearchDeploymentRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse> + getSearchDeploymentRevisionsMethod; + if ((getSearchDeploymentRevisionsMethod = + TelcoAutomationGrpc.getSearchDeploymentRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getSearchDeploymentRevisionsMethod = + TelcoAutomationGrpc.getSearchDeploymentRevisionsMethod) + == null) { + TelcoAutomationGrpc.getSearchDeploymentRevisionsMethod = + getSearchDeploymentRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchDeploymentRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .SearchDeploymentRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .SearchDeploymentRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("SearchDeploymentRevisions")) + .build(); + } + } + } + return getSearchDeploymentRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse> + getDiscardBlueprintChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscardBlueprintChanges", + requestType = com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse> + getDiscardBlueprintChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse> + getDiscardBlueprintChangesMethod; + if ((getDiscardBlueprintChangesMethod = TelcoAutomationGrpc.getDiscardBlueprintChangesMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDiscardBlueprintChangesMethod = + TelcoAutomationGrpc.getDiscardBlueprintChangesMethod) + == null) { + TelcoAutomationGrpc.getDiscardBlueprintChangesMethod = + getDiscardBlueprintChangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiscardBlueprintChanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DiscardBlueprintChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DiscardBlueprintChangesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DiscardBlueprintChanges")) + .build(); + } + } + } + return getDiscardBlueprintChangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse> + getListPublicBlueprintsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPublicBlueprints", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse> + getListPublicBlueprintsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse> + getListPublicBlueprintsMethod; + if ((getListPublicBlueprintsMethod = TelcoAutomationGrpc.getListPublicBlueprintsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListPublicBlueprintsMethod = TelcoAutomationGrpc.getListPublicBlueprintsMethod) + == null) { + TelcoAutomationGrpc.getListPublicBlueprintsMethod = + getListPublicBlueprintsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPublicBlueprints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListPublicBlueprints")) + .build(); + } + } + } + return getListPublicBlueprintsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint> + getGetPublicBlueprintMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPublicBlueprint", + requestType = com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint> + getGetPublicBlueprintMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint> + getGetPublicBlueprintMethod; + if ((getGetPublicBlueprintMethod = TelcoAutomationGrpc.getGetPublicBlueprintMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetPublicBlueprintMethod = TelcoAutomationGrpc.getGetPublicBlueprintMethod) + == null) { + TelcoAutomationGrpc.getGetPublicBlueprintMethod = + getGetPublicBlueprintMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPublicBlueprint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetPublicBlueprint")) + .build(); + } + } + } + return getGetPublicBlueprintMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getCreateDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getCreateDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getCreateDeploymentMethod; + if ((getCreateDeploymentMethod = TelcoAutomationGrpc.getCreateDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getCreateDeploymentMethod = TelcoAutomationGrpc.getCreateDeploymentMethod) == null) { + TelcoAutomationGrpc.getCreateDeploymentMethod = + getCreateDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("CreateDeployment")) + .build(); + } + } + } + return getCreateDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getUpdateDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getUpdateDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getUpdateDeploymentMethod; + if ((getUpdateDeploymentMethod = TelcoAutomationGrpc.getUpdateDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getUpdateDeploymentMethod = TelcoAutomationGrpc.getUpdateDeploymentMethod) == null) { + TelcoAutomationGrpc.getUpdateDeploymentMethod = + getUpdateDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("UpdateDeployment")) + .build(); + } + } + } + return getUpdateDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getGetDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getGetDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getGetDeploymentMethod; + if ((getGetDeploymentMethod = TelcoAutomationGrpc.getGetDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetDeploymentMethod = TelcoAutomationGrpc.getGetDeploymentMethod) == null) { + TelcoAutomationGrpc.getGetDeploymentMethod = + getGetDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetDeployment")) + .build(); + } + } + } + return getGetDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest, + com.google.protobuf.Empty> + getDeleteDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest, + com.google.protobuf.Empty> + getDeleteDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest, + com.google.protobuf.Empty> + getDeleteDeploymentMethod; + if ((getDeleteDeploymentMethod = TelcoAutomationGrpc.getDeleteDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteDeploymentMethod = TelcoAutomationGrpc.getDeleteDeploymentMethod) == null) { + TelcoAutomationGrpc.getDeleteDeploymentMethod = + getDeleteDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteDeployment")) + .build(); + } + } + } + return getDeleteDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest, + com.google.protobuf.Empty> + getRemoveDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest, + com.google.protobuf.Empty> + getRemoveDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest, + com.google.protobuf.Empty> + getRemoveDeploymentMethod; + if ((getRemoveDeploymentMethod = TelcoAutomationGrpc.getRemoveDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getRemoveDeploymentMethod = TelcoAutomationGrpc.getRemoveDeploymentMethod) == null) { + TelcoAutomationGrpc.getRemoveDeploymentMethod = + getRemoveDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("RemoveDeployment")) + .build(); + } + } + } + return getRemoveDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getDeleteDeploymentRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeploymentRevision", + requestType = com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getDeleteDeploymentRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getDeleteDeploymentRevisionMethod; + if ((getDeleteDeploymentRevisionMethod = TelcoAutomationGrpc.getDeleteDeploymentRevisionMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDeleteDeploymentRevisionMethod = + TelcoAutomationGrpc.getDeleteDeploymentRevisionMethod) + == null) { + TelcoAutomationGrpc.getDeleteDeploymentRevisionMethod = + getDeleteDeploymentRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDeploymentRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DeleteDeploymentRevisionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DeleteDeploymentRevision")) + .build(); + } + } + } + return getDeleteDeploymentRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse> + getListDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeployments", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse> + getListDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse> + getListDeploymentsMethod; + if ((getListDeploymentsMethod = TelcoAutomationGrpc.getListDeploymentsMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListDeploymentsMethod = TelcoAutomationGrpc.getListDeploymentsMethod) == null) { + TelcoAutomationGrpc.getListDeploymentsMethod = + getListDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListDeployments")) + .build(); + } + } + } + return getListDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse> + getListDeploymentRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeploymentRevisions", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse> + getListDeploymentRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse> + getListDeploymentRevisionsMethod; + if ((getListDeploymentRevisionsMethod = TelcoAutomationGrpc.getListDeploymentRevisionsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListDeploymentRevisionsMethod = + TelcoAutomationGrpc.getListDeploymentRevisionsMethod) + == null) { + TelcoAutomationGrpc.getListDeploymentRevisionsMethod = + getListDeploymentRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDeploymentRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListDeploymentRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListDeploymentRevisionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListDeploymentRevisions")) + .build(); + } + } + } + return getListDeploymentRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse> + getDiscardDeploymentChangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscardDeploymentChanges", + requestType = com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse> + getDiscardDeploymentChangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse> + getDiscardDeploymentChangesMethod; + if ((getDiscardDeploymentChangesMethod = TelcoAutomationGrpc.getDiscardDeploymentChangesMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getDiscardDeploymentChangesMethod = + TelcoAutomationGrpc.getDiscardDeploymentChangesMethod) + == null) { + TelcoAutomationGrpc.getDiscardDeploymentChangesMethod = + getDiscardDeploymentChangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiscardDeploymentChanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DiscardDeploymentChangesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .DiscardDeploymentChangesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("DiscardDeploymentChanges")) + .build(); + } + } + } + return getDiscardDeploymentChangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getApplyDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getApplyDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getApplyDeploymentMethod; + if ((getApplyDeploymentMethod = TelcoAutomationGrpc.getApplyDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getApplyDeploymentMethod = TelcoAutomationGrpc.getApplyDeploymentMethod) == null) { + TelcoAutomationGrpc.getApplyDeploymentMethod = + getApplyDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ApplyDeployment")) + .build(); + } + } + } + return getApplyDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse> + getComputeDeploymentStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeDeploymentStatus", + requestType = com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse> + getComputeDeploymentStatusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse> + getComputeDeploymentStatusMethod; + if ((getComputeDeploymentStatusMethod = TelcoAutomationGrpc.getComputeDeploymentStatusMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getComputeDeploymentStatusMethod = + TelcoAutomationGrpc.getComputeDeploymentStatusMethod) + == null) { + TelcoAutomationGrpc.getComputeDeploymentStatusMethod = + getComputeDeploymentStatusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ComputeDeploymentStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ComputeDeploymentStatusRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ComputeDeploymentStatusResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ComputeDeploymentStatus")) + .build(); + } + } + } + return getComputeDeploymentStatusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getRollbackDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getRollbackDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getRollbackDeploymentMethod; + if ((getRollbackDeploymentMethod = TelcoAutomationGrpc.getRollbackDeploymentMethod) == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getRollbackDeploymentMethod = TelcoAutomationGrpc.getRollbackDeploymentMethod) + == null) { + TelcoAutomationGrpc.getRollbackDeploymentMethod = + getRollbackDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.Deployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("RollbackDeployment")) + .build(); + } + } + } + return getRollbackDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getGetHydratedDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHydratedDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getGetHydratedDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getGetHydratedDeploymentMethod; + if ((getGetHydratedDeploymentMethod = TelcoAutomationGrpc.getGetHydratedDeploymentMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getGetHydratedDeploymentMethod = TelcoAutomationGrpc.getGetHydratedDeploymentMethod) + == null) { + TelcoAutomationGrpc.getGetHydratedDeploymentMethod = + getGetHydratedDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetHydratedDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("GetHydratedDeployment")) + .build(); + } + } + } + return getGetHydratedDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse> + getListHydratedDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHydratedDeployments", + requestType = com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest.class, + responseType = + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse> + getListHydratedDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse> + getListHydratedDeploymentsMethod; + if ((getListHydratedDeploymentsMethod = TelcoAutomationGrpc.getListHydratedDeploymentsMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getListHydratedDeploymentsMethod = + TelcoAutomationGrpc.getListHydratedDeploymentsMethod) + == null) { + TelcoAutomationGrpc.getListHydratedDeploymentsMethod = + getListHydratedDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListHydratedDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListHydratedDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ListHydratedDeploymentsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ListHydratedDeployments")) + .build(); + } + } + } + return getListHydratedDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getUpdateHydratedDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHydratedDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getUpdateHydratedDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getUpdateHydratedDeploymentMethod; + if ((getUpdateHydratedDeploymentMethod = TelcoAutomationGrpc.getUpdateHydratedDeploymentMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getUpdateHydratedDeploymentMethod = + TelcoAutomationGrpc.getUpdateHydratedDeploymentMethod) + == null) { + TelcoAutomationGrpc.getUpdateHydratedDeploymentMethod = + getUpdateHydratedDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateHydratedDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .UpdateHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("UpdateHydratedDeployment")) + .build(); + } + } + } + return getUpdateHydratedDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getApplyHydratedDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyHydratedDeployment", + requestType = com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest.class, + responseType = com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getApplyHydratedDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getApplyHydratedDeploymentMethod; + if ((getApplyHydratedDeploymentMethod = TelcoAutomationGrpc.getApplyHydratedDeploymentMethod) + == null) { + synchronized (TelcoAutomationGrpc.class) { + if ((getApplyHydratedDeploymentMethod = + TelcoAutomationGrpc.getApplyHydratedDeploymentMethod) + == null) { + TelcoAutomationGrpc.getApplyHydratedDeploymentMethod = + getApplyHydratedDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ApplyHydratedDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1 + .ApplyHydratedDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment + .getDefaultInstance())) + .setSchemaDescriptor( + new TelcoAutomationMethodDescriptorSupplier("ApplyHydratedDeployment")) + .build(); + } + } + } + return getApplyHydratedDeploymentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TelcoAutomationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TelcoAutomationStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationStub(channel, callOptions); + } + }; + return TelcoAutomationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TelcoAutomationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TelcoAutomationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationBlockingStub(channel, callOptions); + } + }; + return TelcoAutomationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TelcoAutomationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TelcoAutomationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationFutureStub(channel, callOptions); + } + }; + return TelcoAutomationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + default void listOrchestrationClusters( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOrchestrationClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + default void getOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrchestrationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + default void createOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOrchestrationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + default void deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOrchestrationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + default void listEdgeSlms( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEdgeSlmsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + default void getEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEdgeSlmMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + default void createEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEdgeSlmMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + default void deleteEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEdgeSlmMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + default void createBlueprint( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + default void updateBlueprint( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + default void getBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + default void deleteBlueprint( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified revision of the blueprint.
+     * 
+ */ + default void deleteBlueprintRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBlueprintRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + default void listBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBlueprintsMethod(), responseObserver); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + default void approveBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + default void proposeBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProposeBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + default void rejectBlueprint( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRejectBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + default void listBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBlueprintRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + default void searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchBlueprintRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + default void searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchDeploymentRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + default void discardBlueprintChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiscardBlueprintChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + default void listPublicBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPublicBlueprintsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + default void getPublicBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPublicBlueprintMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + default void createDeployment( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + default void updateDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + default void getDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a deployment and all its revisions.
+     * 
+ */ + default void deleteDeployment( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + default void removeDeployment( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified revision of the deployment.
+     * 
+ */ + default void deleteDeploymentRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeploymentRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + default void listDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + default void listDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + default void discardDeploymentChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiscardDeploymentChangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + default void applyDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + default void computeDeploymentStatus( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeDeploymentStatusMethod(), responseObserver); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + default void rollbackDeployment( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + default void getHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHydratedDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + default void listHydratedDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHydratedDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + default void updateHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateHydratedDeploymentMethod(), responseObserver); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + default void applyHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyHydratedDeploymentMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public abstract static class TelcoAutomationImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return TelcoAutomationGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public static final class TelcoAutomationStub + extends io.grpc.stub.AbstractAsyncStub { + private TelcoAutomationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TelcoAutomationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + public void listOrchestrationClusters( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrchestrationClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + public void getOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrchestrationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + public void createOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOrchestrationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + public void deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOrchestrationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + public void listEdgeSlms( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEdgeSlmsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + public void getEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEdgeSlmMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + public void createEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEdgeSlmMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + public void deleteEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEdgeSlmMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + public void createBlueprint( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + public void updateBlueprint( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + public void getBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + public void deleteBlueprint( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified revision of the blueprint.
+     * 
+ */ + public void deleteBlueprintRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBlueprintRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + public void listBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBlueprintsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + public void approveBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApproveBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + public void proposeBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProposeBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + public void rejectBlueprint( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRejectBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + public void listBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBlueprintRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + public void searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchBlueprintRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + public void searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchDeploymentRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + public void discardBlueprintChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscardBlueprintChangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + public void listPublicBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPublicBlueprintsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + public void getPublicBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPublicBlueprintMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + public void createDeployment( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + public void updateDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + public void getDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a deployment and all its revisions.
+     * 
+ */ + public void deleteDeployment( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + public void removeDeployment( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified revision of the deployment.
+     * 
+ */ + public void deleteDeploymentRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeploymentRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + public void listDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + public void listDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + public void discardDeploymentChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscardDeploymentChangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + public void applyDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + public void computeDeploymentStatus( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeDeploymentStatusMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + public void rollbackDeployment( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + public void getHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHydratedDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + public void listHydratedDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHydratedDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + public void updateHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHydratedDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + public void applyHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyHydratedDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public static final class TelcoAutomationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TelcoAutomationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TelcoAutomationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + listOrchestrationClusters( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrchestrationClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrchestrationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateOrchestrationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteOrchestrationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse listEdgeSlms( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEdgeSlmsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEdgeSlmMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEdgeSlmMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + public com.google.longrunning.Operation deleteEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEdgeSlmMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint createBlueprint( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint updateBlueprint( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + public com.google.protobuf.Empty deleteBlueprint( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified revision of the blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint deleteBlueprintRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBlueprintRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse listBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBlueprintsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint approveBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint proposeBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProposeBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint rejectBlueprint( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRejectBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + listBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBlueprintRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchBlueprintRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchDeploymentRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + discardBlueprintChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscardBlueprintChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + listPublicBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPublicBlueprintsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getPublicBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPublicBlueprintMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment createDeployment( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment updateDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a deployment and all its revisions.
+     * 
+ */ + public com.google.protobuf.Empty deleteDeployment( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + public com.google.protobuf.Empty removeDeployment( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified revision of the deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment deleteDeploymentRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeploymentRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse listDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + listDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + discardDeploymentChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscardDeploymentChangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment applyDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + computeDeploymentStatus( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeDeploymentStatusMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment rollbackDeployment( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHydratedDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + listHydratedDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHydratedDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment updateHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHydratedDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment applyHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyHydratedDeploymentMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TelcoAutomation. + * + *
+   * TelcoAutomation Service manages the control plane cluster a.k.a.
+   * Orchestration Cluster (GKE cluster with config controller) of TNA. It also
+   * exposes blueprint APIs which manages the lifecycle of blueprints that control
+   * the infrastructure setup (e.g GDCE clusters) and deployment of network
+   * functions.
+   * 
+ */ + public static final class TelcoAutomationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TelcoAutomationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TelcoAutomationFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TelcoAutomationFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists OrchestrationClusters in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse> + listOrchestrationClusters( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrchestrationClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single OrchestrationCluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster> + getOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrchestrationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new OrchestrationCluster in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateOrchestrationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single OrchestrationCluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteOrchestrationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists EdgeSlms in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse> + listEdgeSlms(com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEdgeSlmsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single EdgeSlm.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm> + getEdgeSlm(com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEdgeSlmMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new EdgeSlm in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createEdgeSlm(com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEdgeSlmMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single EdgeSlm.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEdgeSlm(com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEdgeSlmMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + createBlueprint(com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + updateBlueprint(com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + getBlueprint(com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a blueprint and all its revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBlueprint(com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified revision of the blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + deleteBlueprintRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBlueprintRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all blueprints.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse> + listBlueprints(com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBlueprintsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Approves a blueprint and commits a new revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + approveBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Proposes a blueprint for approval of changes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + proposeBlueprint( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProposeBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Rejects a blueprint revision proposal and flips it back to Draft state.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Blueprint> + rejectBlueprint(com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRejectBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List blueprint revisions of a given blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse> + listBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBlueprintRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches across blueprint revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse> + searchBlueprintRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchBlueprintRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches across deployment revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse> + searchDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchDeploymentRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Discards the changes in a blueprint and reverts the blueprint to the last
+     * approved blueprint revision. No changes take place if a blueprint does not
+     * have revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse> + discardBlueprintChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscardBlueprintChangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the blueprints in TNA's public catalog. Default page size = 20,
+     * Max Page Size = 100.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse> + listPublicBlueprints( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPublicBlueprintsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested public blueprint.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint> + getPublicBlueprint( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPublicBlueprintMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Deployment> + createDeployment( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Deployment> + updateDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Deployment> + getDeployment(com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a deployment and all its revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDeployment( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes the deployment by marking it as DELETING. Post which deployment and
+     * it's revisions gets deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + removeDeployment( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified revision of the deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Deployment> + deleteDeploymentRevision( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeploymentRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all deployments.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse> + listDeployments(com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List deployment revisions of a given deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse> + listDeploymentRevisions( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Discards the changes in a deployment and reverts the deployment to the last
+     * approved deployment revision. No changes take place if a deployment does
+     * not have revisions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse> + discardDeploymentChanges( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscardDeploymentChangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Applies the deployment's YAML files to the parent orchestration cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Deployment> + applyDeployment(com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested deployment status.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse> + computeDeploymentStatus( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeDeploymentStatusMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Rollback the active deployment to the given past approved deployment
+     * revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.Deployment> + rollbackDeployment( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested hydrated deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + getHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHydratedDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all hydrated deployments present under a deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse> + listHydratedDeployments( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHydratedDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a hydrated deployment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + updateHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHydratedDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Applies a hydrated deployment to a workload cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment> + applyHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyHydratedDeploymentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ORCHESTRATION_CLUSTERS = 0; + private static final int METHODID_GET_ORCHESTRATION_CLUSTER = 1; + private static final int METHODID_CREATE_ORCHESTRATION_CLUSTER = 2; + private static final int METHODID_DELETE_ORCHESTRATION_CLUSTER = 3; + private static final int METHODID_LIST_EDGE_SLMS = 4; + private static final int METHODID_GET_EDGE_SLM = 5; + private static final int METHODID_CREATE_EDGE_SLM = 6; + private static final int METHODID_DELETE_EDGE_SLM = 7; + private static final int METHODID_CREATE_BLUEPRINT = 8; + private static final int METHODID_UPDATE_BLUEPRINT = 9; + private static final int METHODID_GET_BLUEPRINT = 10; + private static final int METHODID_DELETE_BLUEPRINT = 11; + private static final int METHODID_DELETE_BLUEPRINT_REVISION = 12; + private static final int METHODID_LIST_BLUEPRINTS = 13; + private static final int METHODID_APPROVE_BLUEPRINT = 14; + private static final int METHODID_PROPOSE_BLUEPRINT = 15; + private static final int METHODID_REJECT_BLUEPRINT = 16; + private static final int METHODID_LIST_BLUEPRINT_REVISIONS = 17; + private static final int METHODID_SEARCH_BLUEPRINT_REVISIONS = 18; + private static final int METHODID_SEARCH_DEPLOYMENT_REVISIONS = 19; + private static final int METHODID_DISCARD_BLUEPRINT_CHANGES = 20; + private static final int METHODID_LIST_PUBLIC_BLUEPRINTS = 21; + private static final int METHODID_GET_PUBLIC_BLUEPRINT = 22; + private static final int METHODID_CREATE_DEPLOYMENT = 23; + private static final int METHODID_UPDATE_DEPLOYMENT = 24; + private static final int METHODID_GET_DEPLOYMENT = 25; + private static final int METHODID_DELETE_DEPLOYMENT = 26; + private static final int METHODID_REMOVE_DEPLOYMENT = 27; + private static final int METHODID_DELETE_DEPLOYMENT_REVISION = 28; + private static final int METHODID_LIST_DEPLOYMENTS = 29; + private static final int METHODID_LIST_DEPLOYMENT_REVISIONS = 30; + private static final int METHODID_DISCARD_DEPLOYMENT_CHANGES = 31; + private static final int METHODID_APPLY_DEPLOYMENT = 32; + private static final int METHODID_COMPUTE_DEPLOYMENT_STATUS = 33; + private static final int METHODID_ROLLBACK_DEPLOYMENT = 34; + private static final int METHODID_GET_HYDRATED_DEPLOYMENT = 35; + private static final int METHODID_LIST_HYDRATED_DEPLOYMENTS = 36; + private static final int METHODID_UPDATE_HYDRATED_DEPLOYMENT = 37; + private static final int METHODID_APPLY_HYDRATED_DEPLOYMENT = 38; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_ORCHESTRATION_CLUSTERS: + serviceImpl.listOrchestrationClusters( + (com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse>) + responseObserver); + break; + case METHODID_GET_ORCHESTRATION_CLUSTER: + serviceImpl.getOrchestrationCluster( + (com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster>) + responseObserver); + break; + case METHODID_CREATE_ORCHESTRATION_CLUSTER: + serviceImpl.createOrchestrationCluster( + (com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ORCHESTRATION_CLUSTER: + serviceImpl.deleteOrchestrationCluster( + (com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EDGE_SLMS: + serviceImpl.listEdgeSlms( + (com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse>) + responseObserver); + break; + case METHODID_GET_EDGE_SLM: + serviceImpl.getEdgeSlm( + (com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_EDGE_SLM: + serviceImpl.createEdgeSlm( + (com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EDGE_SLM: + serviceImpl.deleteEdgeSlm( + (com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BLUEPRINT: + serviceImpl.createBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_BLUEPRINT: + serviceImpl.updateBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BLUEPRINT: + serviceImpl.getBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BLUEPRINT: + serviceImpl.deleteBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BLUEPRINT_REVISION: + serviceImpl.deleteBlueprintRevision( + (com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BLUEPRINTS: + serviceImpl.listBlueprints( + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse>) + responseObserver); + break; + case METHODID_APPROVE_BLUEPRINT: + serviceImpl.approveBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PROPOSE_BLUEPRINT: + serviceImpl.proposeBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REJECT_BLUEPRINT: + serviceImpl.rejectBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BLUEPRINT_REVISIONS: + serviceImpl.listBlueprintRevisions( + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse>) + responseObserver); + break; + case METHODID_SEARCH_BLUEPRINT_REVISIONS: + serviceImpl.searchBlueprintRevisions( + (com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse>) + responseObserver); + break; + case METHODID_SEARCH_DEPLOYMENT_REVISIONS: + serviceImpl.searchDeploymentRevisions( + (com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse>) + responseObserver); + break; + case METHODID_DISCARD_BLUEPRINT_CHANGES: + serviceImpl.discardBlueprintChanges( + (com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse>) + responseObserver); + break; + case METHODID_LIST_PUBLIC_BLUEPRINTS: + serviceImpl.listPublicBlueprints( + (com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse>) + responseObserver); + break; + case METHODID_GET_PUBLIC_BLUEPRINT: + serviceImpl.getPublicBlueprint( + (com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint>) + responseObserver); + break; + case METHODID_CREATE_DEPLOYMENT: + serviceImpl.createDeployment( + (com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DEPLOYMENT: + serviceImpl.updateDeployment( + (com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DEPLOYMENT: + serviceImpl.getDeployment( + (com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DEPLOYMENT: + serviceImpl.deleteDeployment( + (com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REMOVE_DEPLOYMENT: + serviceImpl.removeDeployment( + (com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEPLOYMENT_REVISION: + serviceImpl.deleteDeploymentRevision( + (com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DEPLOYMENTS: + serviceImpl.listDeployments( + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse>) + responseObserver); + break; + case METHODID_LIST_DEPLOYMENT_REVISIONS: + serviceImpl.listDeploymentRevisions( + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse>) + responseObserver); + break; + case METHODID_DISCARD_DEPLOYMENT_CHANGES: + serviceImpl.discardDeploymentChanges( + (com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse>) + responseObserver); + break; + case METHODID_APPLY_DEPLOYMENT: + serviceImpl.applyDeployment( + (com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COMPUTE_DEPLOYMENT_STATUS: + serviceImpl.computeDeploymentStatus( + (com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse>) + responseObserver); + break; + case METHODID_ROLLBACK_DEPLOYMENT: + serviceImpl.rollbackDeployment( + (com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_HYDRATED_DEPLOYMENT: + serviceImpl.getHydratedDeployment( + (com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment>) + responseObserver); + break; + case METHODID_LIST_HYDRATED_DEPLOYMENTS: + serviceImpl.listHydratedDeployments( + (com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse>) + responseObserver); + break; + case METHODID_UPDATE_HYDRATED_DEPLOYMENT: + serviceImpl.updateHydratedDeployment( + (com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment>) + responseObserver); + break; + case METHODID_APPLY_HYDRATED_DEPLOYMENT: + serviceImpl.applyHydratedDeployment( + (com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListOrchestrationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse>( + service, METHODID_LIST_ORCHESTRATION_CLUSTERS))) + .addMethod( + getGetOrchestrationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster>( + service, METHODID_GET_ORCHESTRATION_CLUSTER))) + .addMethod( + getCreateOrchestrationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_ORCHESTRATION_CLUSTER))) + .addMethod( + getDeleteOrchestrationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_ORCHESTRATION_CLUSTER))) + .addMethod( + getListEdgeSlmsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse>( + service, METHODID_LIST_EDGE_SLMS))) + .addMethod( + getGetEdgeSlmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm>( + service, METHODID_GET_EDGE_SLM))) + .addMethod( + getCreateEdgeSlmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_EDGE_SLM))) + .addMethod( + getDeleteEdgeSlmMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_EDGE_SLM))) + .addMethod( + getCreateBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_CREATE_BLUEPRINT))) + .addMethod( + getUpdateBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_UPDATE_BLUEPRINT))) + .addMethod( + getGetBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_GET_BLUEPRINT))) + .addMethod( + getDeleteBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_BLUEPRINT))) + .addMethod( + getDeleteBlueprintRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_DELETE_BLUEPRINT_REVISION))) + .addMethod( + getListBlueprintsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse>( + service, METHODID_LIST_BLUEPRINTS))) + .addMethod( + getApproveBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_APPROVE_BLUEPRINT))) + .addMethod( + getProposeBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_PROPOSE_BLUEPRINT))) + .addMethod( + getRejectBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.Blueprint>( + service, METHODID_REJECT_BLUEPRINT))) + .addMethod( + getListBlueprintRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse>( + service, METHODID_LIST_BLUEPRINT_REVISIONS))) + .addMethod( + getSearchBlueprintRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse>( + service, METHODID_SEARCH_BLUEPRINT_REVISIONS))) + .addMethod( + getSearchDeploymentRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse>( + service, METHODID_SEARCH_DEPLOYMENT_REVISIONS))) + .addMethod( + getDiscardBlueprintChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse>( + service, METHODID_DISCARD_BLUEPRINT_CHANGES))) + .addMethod( + getListPublicBlueprintsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse>( + service, METHODID_LIST_PUBLIC_BLUEPRINTS))) + .addMethod( + getGetPublicBlueprintMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint>( + service, METHODID_GET_PUBLIC_BLUEPRINT))) + .addMethod( + getCreateDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment>( + service, METHODID_CREATE_DEPLOYMENT))) + .addMethod( + getUpdateDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment>( + service, METHODID_UPDATE_DEPLOYMENT))) + .addMethod( + getGetDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment>( + service, METHODID_GET_DEPLOYMENT))) + .addMethod( + getDeleteDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DEPLOYMENT))) + .addMethod( + getRemoveDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest, + com.google.protobuf.Empty>(service, METHODID_REMOVE_DEPLOYMENT))) + .addMethod( + getDeleteDeploymentRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment>( + service, METHODID_DELETE_DEPLOYMENT_REVISION))) + .addMethod( + getListDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse>( + service, METHODID_LIST_DEPLOYMENTS))) + .addMethod( + getListDeploymentRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse>( + service, METHODID_LIST_DEPLOYMENT_REVISIONS))) + .addMethod( + getDiscardDeploymentChangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse>( + service, METHODID_DISCARD_DEPLOYMENT_CHANGES))) + .addMethod( + getApplyDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment>( + service, METHODID_APPLY_DEPLOYMENT))) + .addMethod( + getComputeDeploymentStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse>( + service, METHODID_COMPUTE_DEPLOYMENT_STATUS))) + .addMethod( + getRollbackDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.Deployment>( + service, METHODID_ROLLBACK_DEPLOYMENT))) + .addMethod( + getGetHydratedDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment>( + service, METHODID_GET_HYDRATED_DEPLOYMENT))) + .addMethod( + getListHydratedDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse>( + service, METHODID_LIST_HYDRATED_DEPLOYMENTS))) + .addMethod( + getUpdateHydratedDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment>( + service, METHODID_UPDATE_HYDRATED_DEPLOYMENT))) + .addMethod( + getApplyHydratedDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment>( + service, METHODID_APPLY_HYDRATED_DEPLOYMENT))) + .build(); + } + + private abstract static class TelcoAutomationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TelcoAutomationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TelcoAutomation"); + } + } + + private static final class TelcoAutomationFileDescriptorSupplier + extends TelcoAutomationBaseDescriptorSupplier { + TelcoAutomationFileDescriptorSupplier() {} + } + + private static final class TelcoAutomationMethodDescriptorSupplier + extends TelcoAutomationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + TelcoAutomationMethodDescriptorSupplier(java.lang.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 (TelcoAutomationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TelcoAutomationFileDescriptorSupplier()) + .addMethod(getListOrchestrationClustersMethod()) + .addMethod(getGetOrchestrationClusterMethod()) + .addMethod(getCreateOrchestrationClusterMethod()) + .addMethod(getDeleteOrchestrationClusterMethod()) + .addMethod(getListEdgeSlmsMethod()) + .addMethod(getGetEdgeSlmMethod()) + .addMethod(getCreateEdgeSlmMethod()) + .addMethod(getDeleteEdgeSlmMethod()) + .addMethod(getCreateBlueprintMethod()) + .addMethod(getUpdateBlueprintMethod()) + .addMethod(getGetBlueprintMethod()) + .addMethod(getDeleteBlueprintMethod()) + .addMethod(getDeleteBlueprintRevisionMethod()) + .addMethod(getListBlueprintsMethod()) + .addMethod(getApproveBlueprintMethod()) + .addMethod(getProposeBlueprintMethod()) + .addMethod(getRejectBlueprintMethod()) + .addMethod(getListBlueprintRevisionsMethod()) + .addMethod(getSearchBlueprintRevisionsMethod()) + .addMethod(getSearchDeploymentRevisionsMethod()) + .addMethod(getDiscardBlueprintChangesMethod()) + .addMethod(getListPublicBlueprintsMethod()) + .addMethod(getGetPublicBlueprintMethod()) + .addMethod(getCreateDeploymentMethod()) + .addMethod(getUpdateDeploymentMethod()) + .addMethod(getGetDeploymentMethod()) + .addMethod(getDeleteDeploymentMethod()) + .addMethod(getRemoveDeploymentMethod()) + .addMethod(getDeleteDeploymentRevisionMethod()) + .addMethod(getListDeploymentsMethod()) + .addMethod(getListDeploymentRevisionsMethod()) + .addMethod(getDiscardDeploymentChangesMethod()) + .addMethod(getApplyDeploymentMethod()) + .addMethod(getComputeDeploymentStatusMethod()) + .addMethod(getRollbackDeploymentMethod()) + .addMethod(getGetHydratedDeploymentMethod()) + .addMethod(getListHydratedDeploymentsMethod()) + .addMethod(getUpdateHydratedDeploymentMethod()) + .addMethod(getApplyHydratedDeploymentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-telcoautomation/owlbot.py b/java-telcoautomation/owlbot.py new file mode 100644 index 000000000000..03c0f6686d3f --- /dev/null +++ b/java-telcoautomation/owlbot.py @@ -0,0 +1,36 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) \ No newline at end of file diff --git a/java-telcoautomation/pom.xml b/java-telcoautomation/pom.xml new file mode 100644 index 000000000000..800cd90a79a0 --- /dev/null +++ b/java-telcoautomation/pom.xml @@ -0,0 +1,66 @@ + + + 4.0.0 + com.google.cloud + google-cloud-telcoautomation-parent + pom + 0.0.1-SNAPSHOT + Google Telco Automation API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.25.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-telcoautomation-parent + + + + + + com.google.cloud + google-cloud-telcoautomation + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-telcoautomation-v1alpha1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-telcoautomation-v1alpha1 + 0.0.1-SNAPSHOT + + + + + + google-cloud-telcoautomation + grpc-google-cloud-telcoautomation-v1 + grpc-google-cloud-telcoautomation-v1alpha1 + proto-google-cloud-telcoautomation-v1 + proto-google-cloud-telcoautomation-v1alpha1 + google-cloud-telcoautomation-bom + + + diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/clirr-ignored-differences.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..66212747b244 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/telcoautomation/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/telcoautomation/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/telcoautomation/v1/*OrBuilder + boolean has*(*) + + diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml new file mode 100644 index 000000000000..e32672c067b0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-telcoautomation-v1 + 0.0.1-SNAPSHOT + proto-google-cloud-telcoautomation-v1 + Proto library for google-cloud-telcoautomation + + com.google.cloud + google-cloud-telcoautomation-parent + 0.0.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequest.java new file mode 100644 index 000000000000..4b57f471ff5a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequest.java @@ -0,0 +1,643 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ApplyDeployment`. The resources in given deployment
+ * gets applied to Orchestration Cluster. A new revision is created when a
+ * deployment is applied.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ApplyDeploymentRequest} + */ +public final class ApplyDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ApplyDeploymentRequest) + ApplyDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplyDeploymentRequest.newBuilder() to construct. + private ApplyDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplyDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplyDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * 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.telcoautomation.v1.ApplyDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest) 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.telcoautomation.v1.ApplyDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest 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.telcoautomation.v1.ApplyDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest 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.telcoautomation.v1.ApplyDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest 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.telcoautomation.v1.ApplyDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest 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.telcoautomation.v1.ApplyDeploymentRequest 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 object for `ApplyDeployment`. The resources in given deployment
+   * gets applied to Orchestration Cluster. A new revision is created when a
+   * deployment is applied.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ApplyDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ApplyDeploymentRequest) + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest 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.telcoautomation.v1.ApplyDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest other) { + if (other == com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest.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. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * 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. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * 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. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * 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.telcoautomation.v1.ApplyDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ApplyDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ApplyDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..9d171dafe8bd --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ApplyDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ApplyDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequest.java new file mode 100644 index 000000000000..a1941e1d3fa8 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request for applying a hydrated deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest} + */ +public final class ApplyHydratedDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) + ApplyHydratedDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplyHydratedDeploymentRequest.newBuilder() to construct. + private ApplyHydratedDeploymentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplyHydratedDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplyHydratedDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * 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.telcoautomation.v1.ApplyHydratedDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) 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.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1.ApplyHydratedDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + 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.telcoautomation.v1.ApplyHydratedDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1.ApplyHydratedDeploymentRequest 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 applying a hydrated deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1.ApplyHydratedDeploymentRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + .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. The name of the hydrated deployment to apply.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the hydrated deployment to apply.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the hydrated deployment to apply.
+     * 
+ * + * + * 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. The name of the hydrated deployment to apply.
+     * 
+ * + * + * 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. The name of the hydrated deployment to apply.
+     * 
+ * + * + * 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.telcoautomation.v1.ApplyHydratedDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyHydratedDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ApplyHydratedDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..a0ee4e067707 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApplyHydratedDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ApplyHydratedDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequest.java new file mode 100644 index 000000000000..50317c988a4b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ApproveBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ApproveBlueprintRequest} + */ +public final class ApproveBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ApproveBlueprintRequest) + ApproveBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveBlueprintRequest.newBuilder() to construct. + private ApproveBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * 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.telcoautomation.v1.ApproveBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest) 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.telcoautomation.v1.ApproveBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest 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.telcoautomation.v1.ApproveBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest 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.telcoautomation.v1.ApproveBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest 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.telcoautomation.v1.ApproveBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest 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.telcoautomation.v1.ApproveBlueprintRequest 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 object for `ApproveBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ApproveBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ApproveBlueprintRequest) + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest 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.telcoautomation.v1.ApproveBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest.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. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * 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. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * 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. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * 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.telcoautomation.v1.ApproveBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ApproveBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ApproveBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..0ff4980e59f1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ApproveBlueprintRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ApproveBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ApproveBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Blueprint.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Blueprint.java new file mode 100644 index 000000000000..d7b0bd6dc84e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Blueprint.java @@ -0,0 +1,4043 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * A Blueprint contains a collection of kubernetes resources in the form of
+ * YAML files. The file contents of a blueprint are collectively known as
+ * package. A blueprint can be
+ * a) imported from TNA's public catalog
+ * b) modified as per a user's need
+ * c) proposed and approved.
+ * On approval, a revision of blueprint is created which can be used to
+ * create a deployment on Orchestration or Workload Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.Blueprint} + */ +public final class Blueprint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.Blueprint) + BlueprintOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blueprint.newBuilder() to construct. + private Blueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Blueprint() { + name_ = ""; + revisionId_ = ""; + sourceBlueprint_ = ""; + approvalState_ = 0; + displayName_ = ""; + repository_ = ""; + files_ = java.util.Collections.emptyList(); + sourceProvider_ = ""; + deploymentLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Blueprint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + 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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.Blueprint.class, + com.google.cloud.telcoautomation.v1.Blueprint.Builder.class); + } + + /** + * + * + *
+   * Approval state indicates the state of a Blueprint in its approval
+   * lifecycle.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.Blueprint.ApprovalState} + */ + public enum ApprovalState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * APPROVAL_STATE_UNSPECIFIED = 0; + */ + APPROVAL_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A blueprint starts in DRAFT state once it is created. All edits are made
+     * to the blueprint in DRAFT state.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * When the edits are ready for review, blueprint can be proposed and moves
+     * to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state.
+     * 
+ * + * PROPOSED = 2; + */ + PROPOSED(2), + /** + * + * + *
+     * When a proposed blueprint is approved, it moves to APPROVED state. A new
+     * revision is committed. The latest committed revision can be used to
+     * create a deployment on Orchestration or Workload Cluster. Edits to an
+     * APPROVED blueprint changes its state back to DRAFT. The last committed
+     * revision of a blueprint represents its latest APPROVED state.
+     * 
+ * + * APPROVED = 3; + */ + APPROVED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * APPROVAL_STATE_UNSPECIFIED = 0; + */ + public static final int APPROVAL_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A blueprint starts in DRAFT state once it is created. All edits are made
+     * to the blueprint in DRAFT state.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
+     * When the edits are ready for review, blueprint can be proposed and moves
+     * to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state.
+     * 
+ * + * PROPOSED = 2; + */ + public static final int PROPOSED_VALUE = 2; + /** + * + * + *
+     * When a proposed blueprint is approved, it moves to APPROVED state. A new
+     * revision is committed. The latest committed revision can be used to
+     * create a deployment on Orchestration or Workload Cluster. Edits to an
+     * APPROVED blueprint changes its state back to DRAFT. The last committed
+     * revision of a blueprint represents its latest APPROVED state.
+     * 
+ * + * APPROVED = 3; + */ + public static final int APPROVED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ApprovalState 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 ApprovalState forNumber(int value) { + switch (value) { + case 0: + return APPROVAL_STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return PROPOSED; + case 3: + return APPROVED; + 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 ApprovalState findValueByNumber(int number) { + return ApprovalState.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.telcoautomation.v1.Blueprint.getDescriptor().getEnumTypes().get(0); + } + + private static final ApprovalState[] VALUES = values(); + + public static ApprovalState 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 ApprovalState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.Blueprint.ApprovalState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_BLUEPRINT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBlueprint_ = ""; + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprint. + */ + @java.lang.Override + public java.lang.String getSourceBlueprint() { + java.lang.Object ref = sourceBlueprint_; + 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(); + sourceBlueprint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBlueprintBytes() { + java.lang.Object ref = sourceBlueprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp revisionCreateTime_; + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + @java.lang.Override + public boolean hasRevisionCreateTime() { + return revisionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRevisionCreateTime() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + + public static final int APPROVAL_STATE_FIELD_NUMBER = 6; + private int approvalState_ = 0; + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalState. + */ + @java.lang.Override + public int getApprovalStateValue() { + return approvalState_; + } + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalState. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState getApprovalState() { + com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState result = + com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState.forNumber(approvalState_); + return result == null + ? com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object repository_ = ""; + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + 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(); + repository_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List files_; + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Blueprint_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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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 = 12; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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 SOURCE_PROVIDER_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + @java.lang.Override + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + 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(); + sourceProvider_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_LEVEL_FIELD_NUMBER = 14; + private int deploymentLevel_ = 0; + /** + * + * + *
+   * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+   * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+   * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+   * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel() { + com.google.cloud.telcoautomation.v1.DeploymentLevel result = + com.google.cloud.telcoautomation.v1.DeploymentLevel.forNumber(deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentLevel.UNRECOGNIZED + : result; + } + + public static final int ROLLBACK_SUPPORT_FIELD_NUMBER = 15; + private boolean rollbackSupport_ = false; + /** + * + * + *
+   * Output only. Indicates if the deployment created from this blueprint can be
+   * rolled back.
+   * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + @java.lang.Override + public boolean getRollbackSupport() { + return rollbackSupport_; + } + + 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(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceBlueprint_); + } + if (revisionCreateTime_ != null) { + output.writeMessage(5, getRevisionCreateTime()); + } + if (approvalState_ + != com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState.APPROVAL_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, approvalState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, repository_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(9, files_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (createTime_ != null) { + output.writeMessage(11, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(12, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, sourceProvider_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1.DeploymentLevel.DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, deploymentLevel_); + } + if (rollbackSupport_ != false) { + output.writeBool(15, rollbackSupport_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBlueprint_); + } + if (revisionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRevisionCreateTime()); + } + if (approvalState_ + != com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState.APPROVAL_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, approvalState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, repository_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, files_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, sourceProvider_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1.DeploymentLevel.DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, deploymentLevel_); + } + if (rollbackSupport_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, rollbackSupport_); + } + 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.telcoautomation.v1.Blueprint)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.Blueprint other = + (com.google.cloud.telcoautomation.v1.Blueprint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getSourceBlueprint().equals(other.getSourceBlueprint())) return false; + if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; + if (hasRevisionCreateTime()) { + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } + if (approvalState_ != other.approvalState_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRepository().equals(other.getRepository())) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (!getSourceProvider().equals(other.getSourceProvider())) return false; + if (deploymentLevel_ != other.deploymentLevel_) return false; + if (getRollbackSupport() != other.getRollbackSupport()) 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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (37 * hash) + SOURCE_BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getSourceBlueprint().hashCode(); + if (hasRevisionCreateTime()) { + hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRevisionCreateTime().hashCode(); + } + hash = (37 * hash) + APPROVAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + approvalState_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SOURCE_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvider().hashCode(); + hash = (37 * hash) + DEPLOYMENT_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + deploymentLevel_; + hash = (37 * hash) + ROLLBACK_SUPPORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRollbackSupport()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.Blueprint parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint 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.telcoautomation.v1.Blueprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint 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.telcoautomation.v1.Blueprint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint 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.telcoautomation.v1.Blueprint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint 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.telcoautomation.v1.Blueprint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Blueprint contains a collection of kubernetes resources in the form of
+   * YAML files. The file contents of a blueprint are collectively known as
+   * package. A blueprint can be
+   * a) imported from TNA's public catalog
+   * b) modified as per a user's need
+   * c) proposed and approved.
+   * On approval, a revision of blueprint is created which can be used to
+   * create a deployment on Orchestration or Workload Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.Blueprint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.Blueprint) + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + 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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.Blueprint.class, + com.google.cloud.telcoautomation.v1.Blueprint.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.Blueprint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + sourceBlueprint_ = ""; + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + approvalState_ = 0; + displayName_ = ""; + repository_ = ""; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + sourceProvider_ = ""; + deploymentLevel_ = 0; + rollbackSupport_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint build() { + com.google.cloud.telcoautomation.v1.Blueprint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint buildPartial() { + com.google.cloud.telcoautomation.v1.Blueprint result = + new com.google.cloud.telcoautomation.v1.Blueprint(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.telcoautomation.v1.Blueprint result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.Blueprint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceBlueprint_ = sourceBlueprint_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.approvalState_ = approvalState_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.repository_ = repository_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sourceProvider_ = sourceProvider_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.deploymentLevel_ = deploymentLevel_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.rollbackSupport_ = rollbackSupport_; + } + } + + @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.telcoautomation.v1.Blueprint) { + return mergeFrom((com.google.cloud.telcoautomation.v1.Blueprint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.Blueprint other) { + if (other == com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSourceBlueprint().isEmpty()) { + sourceBlueprint_ = other.sourceBlueprint_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRevisionCreateTime()) { + mergeRevisionCreateTime(other.getRevisionCreateTime()); + } + if (other.approvalState_ != 0) { + setApprovalStateValue(other.getApprovalStateValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getSourceProvider().isEmpty()) { + sourceProvider_ = other.sourceProvider_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.deploymentLevel_ != 0) { + setDeploymentLevelValue(other.getDeploymentLevelValue()); + } + if (other.getRollbackSupport() != false) { + setRollbackSupport(other.getRollbackSupport()); + } + 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: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceBlueprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + approvalState_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + repository_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.cloud.telcoautomation.v1.File m = + input.readMessage( + com.google.cloud.telcoautomation.v1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + sourceProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 112: + { + deploymentLevel_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 112 + case 120: + { + rollbackSupport_ = input.readBool(); + bitField0_ |= 0x00002000; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sourceBlueprint_ = ""; + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprint. + */ + public java.lang.String getSourceBlueprint() { + java.lang.Object ref = sourceBlueprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBlueprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprint. + */ + public com.google.protobuf.ByteString getSourceBlueprintBytes() { + java.lang.Object ref = sourceBlueprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The sourceBlueprint to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBlueprint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceBlueprint() { + sourceBlueprint_ = getDefaultInstance().getSourceBlueprint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for sourceBlueprint to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBlueprint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp revisionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + public boolean hasRevisionCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + public com.google.protobuf.Timestamp getRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } else { + return revisionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revisionCreateTime_ = value; + } else { + revisionCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = builderForValue.build(); + } else { + revisionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRevisionCreateTimeBuilder().mergeFrom(value); + } else { + revisionCreateTime_ = value; + } + } else { + revisionCreateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRevisionCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRevisionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + if (revisionCreateTimeBuilder_ != null) { + return revisionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRevisionCreateTimeFieldBuilder() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTime_ = null; + } + return revisionCreateTimeBuilder_; + } + + private int approvalState_ = 0; + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalState. + */ + @java.lang.Override + public int getApprovalStateValue() { + return approvalState_; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for approvalState to set. + * @return This builder for chaining. + */ + public Builder setApprovalStateValue(int value) { + approvalState_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalState. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState getApprovalState() { + com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState result = + com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState.forNumber(approvalState_); + return result == null + ? com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The approvalState to set. + * @return This builder for chaining. + */ + public Builder setApprovalState( + com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + approvalState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApprovalState() { + bitField0_ = (bitField0_ & ~0x00000010); + approvalState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object repository_ = ""; + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + repository_ = getDefaultInstance().getRepository(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + 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_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + 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. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvider_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProvider() { + sourceProvider_ = getDefaultInstance().getSourceProvider(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProvider_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int deploymentLevel_ = 0; + /** + * + * + *
+     * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+     * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+     * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+     * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevelValue(int value) { + deploymentLevel_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+     * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel() { + com.google.cloud.telcoautomation.v1.DeploymentLevel result = + com.google.cloud.telcoautomation.v1.DeploymentLevel.forNumber(deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+     * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevel(com.google.cloud.telcoautomation.v1.DeploymentLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + deploymentLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+     * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentLevel() { + bitField0_ = (bitField0_ & ~0x00001000); + deploymentLevel_ = 0; + onChanged(); + return this; + } + + private boolean rollbackSupport_; + /** + * + * + *
+     * Output only. Indicates if the deployment created from this blueprint can be
+     * rolled back.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + @java.lang.Override + public boolean getRollbackSupport() { + return rollbackSupport_; + } + /** + * + * + *
+     * Output only. Indicates if the deployment created from this blueprint can be
+     * rolled back.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The rollbackSupport to set. + * @return This builder for chaining. + */ + public Builder setRollbackSupport(boolean value) { + + rollbackSupport_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the deployment created from this blueprint can be
+     * rolled back.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRollbackSupport() { + bitField0_ = (bitField0_ & ~0x00002000); + rollbackSupport_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.Blueprint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.Blueprint) + private static final com.google.cloud.telcoautomation.v1.Blueprint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.Blueprint(); + } + + public static com.google.cloud.telcoautomation.v1.Blueprint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.Blueprint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java new file mode 100644 index 000000000000..5ccaf95b35c2 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 BlueprintName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/blueprints/{blueprint}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + private final String blueprint; + + @Deprecated + protected BlueprintName() { + project = null; + location = null; + orchestrationCluster = null; + blueprint = null; + } + + private BlueprintName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + blueprint = Preconditions.checkNotNull(builder.getBlueprint()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getBlueprint() { + return blueprint; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BlueprintName of( + String project, String location, String orchestrationCluster, String blueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setBlueprint(blueprint) + .build(); + } + + public static String format( + String project, String location, String orchestrationCluster, String blueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setBlueprint(blueprint) + .build() + .toString(); + } + + public static BlueprintName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT.validatedMatch( + formattedString, "BlueprintName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("orchestration_cluster"), + matchMap.get("blueprint")); + } + + 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 (BlueprintName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + if (blueprint != null) { + fieldMapBuilder.put("blueprint", blueprint); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT.instantiate( + "project", + project, + "location", + location, + "orchestration_cluster", + orchestrationCluster, + "blueprint", + blueprint); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BlueprintName that = ((BlueprintName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster) + && Objects.equals(this.blueprint, that.blueprint); + } + 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(orchestrationCluster); + h *= 1000003; + h ^= Objects.hashCode(blueprint); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/blueprints/{blueprint}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + private String blueprint; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getBlueprint() { + return blueprint; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + public Builder setBlueprint(String blueprint) { + this.blueprint = blueprint; + return this; + } + + private Builder(BlueprintName blueprintName) { + this.project = blueprintName.project; + this.location = blueprintName.location; + this.orchestrationCluster = blueprintName.orchestrationCluster; + this.blueprint = blueprintName.blueprint; + } + + public BlueprintName build() { + return new BlueprintName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintOrBuilder.java new file mode 100644 index 000000000000..177071d2d2d1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintOrBuilder.java @@ -0,0 +1,522 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface BlueprintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.Blueprint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprint. + */ + java.lang.String getSourceBlueprint(); + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprint. + */ + com.google.protobuf.ByteString getSourceBlueprintBytes(); + + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + boolean hasRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + com.google.protobuf.Timestamp getRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalState. + */ + int getApprovalStateValue(); + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalState. + */ + com.google.cloud.telcoautomation.v1.Blueprint.ApprovalState getApprovalState(); + + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + java.lang.String getRepository(); + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.File getFiles(int index); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + java.lang.String getSourceProvider(); + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + com.google.protobuf.ByteString getSourceProviderBytes(); + + /** + * + * + *
+   * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+   * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + int getDeploymentLevelValue(); + /** + * + * + *
+   * Output only. DeploymentLevel of a blueprint signifies where the blueprint
+   * will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentLevel. + */ + com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel(); + + /** + * + * + *
+   * Output only. Indicates if the deployment created from this blueprint can be
+   * rolled back.
+   * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + boolean getRollbackSupport(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintView.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintView.java new file mode 100644 index 000000000000..25777d1b263e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintView.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * BlueprintView defines the type of view of the blueprint.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.BlueprintView} + */ +public enum BlueprintView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * BLUEPRINT_VIEW_UNSPECIFIED = 0; + */ + BLUEPRINT_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * BLUEPRINT_VIEW_BASIC = 1; + */ + BLUEPRINT_VIEW_BASIC(1), + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * BLUEPRINT_VIEW_FULL = 2; + */ + BLUEPRINT_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * BLUEPRINT_VIEW_UNSPECIFIED = 0; + */ + public static final int BLUEPRINT_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * BLUEPRINT_VIEW_BASIC = 1; + */ + public static final int BLUEPRINT_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * BLUEPRINT_VIEW_FULL = 2; + */ + public static final int BLUEPRINT_VIEW_FULL_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 BlueprintView 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 BlueprintView forNumber(int value) { + switch (value) { + case 0: + return BLUEPRINT_VIEW_UNSPECIFIED; + case 1: + return BLUEPRINT_VIEW_BASIC; + case 2: + return BLUEPRINT_VIEW_FULL; + 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 BlueprintView findValueByNumber(int number) { + return BlueprintView.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.telcoautomation.v1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BlueprintView[] VALUES = values(); + + public static BlueprintView 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 BlueprintView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.BlueprintView) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequest.java new file mode 100644 index 000000000000..b6c064813817 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ComputeDeploymentStatus`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest} + */ +public final class ComputeDeploymentStatusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) + ComputeDeploymentStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComputeDeploymentStatusRequest.newBuilder() to construct. + private ComputeDeploymentStatusRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeDeploymentStatusRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeDeploymentStatusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest.class, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment without revisionID.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment without revisionID.
+   * 
+ * + * + * 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.telcoautomation.v1.ComputeDeploymentStatusRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest other = + (com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) 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.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest 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.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest 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.telcoautomation.v1.ComputeDeploymentStatusRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + 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.telcoautomation.v1.ComputeDeploymentStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest 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.telcoautomation.v1.ComputeDeploymentStatusRequest 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 object for `ComputeDeploymentStatus`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest.class, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest build() { + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest result = + new com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest 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.telcoautomation.v1.ComputeDeploymentStatusRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + .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. The name of the deployment without revisionID.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment without revisionID.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment without revisionID.
+     * 
+ * + * + * 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. The name of the deployment without revisionID.
+     * 
+ * + * + * 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. The name of the deployment without revisionID.
+     * 
+ * + * + * 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.telcoautomation.v1.ComputeDeploymentStatusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) + private static final com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeDeploymentStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ComputeDeploymentStatusRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequestOrBuilder.java new file mode 100644 index 000000000000..30d530f36ee3 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ComputeDeploymentStatusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment without revisionID.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment without revisionID.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponse.java new file mode 100644 index 000000000000..e1bdffddec35 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponse.java @@ -0,0 +1,1356 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `ComputeDeploymentStatus`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse} + */ +public final class ComputeDeploymentStatusResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse) + ComputeDeploymentStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComputeDeploymentStatusResponse.newBuilder() to construct. + private ComputeDeploymentStatusResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeDeploymentStatusResponse() { + name_ = ""; + aggregatedStatus_ = 0; + resourceStatuses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeDeploymentStatusResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse.class, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGGREGATED_STATUS_FIELD_NUMBER = 2; + private int aggregatedStatus_ = 0; + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for aggregatedStatus. + */ + @java.lang.Override + public int getAggregatedStatusValue() { + return aggregatedStatus_; + } + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aggregatedStatus. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Status getAggregatedStatus() { + com.google.cloud.telcoautomation.v1.Status result = + com.google.cloud.telcoautomation.v1.Status.forNumber(aggregatedStatus_); + return result == null ? com.google.cloud.telcoautomation.v1.Status.UNRECOGNIZED : result; + } + + public static final int RESOURCE_STATUSES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List resourceStatuses_; + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceStatusesList() { + return resourceStatuses_; + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceStatusesOrBuilderList() { + return resourceStatuses_; + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getResourceStatusesCount() { + return resourceStatuses_.size(); + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceStatus getResourceStatuses(int index) { + return resourceStatuses_.get(index); + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder getResourceStatusesOrBuilder( + int index) { + return resourceStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (aggregatedStatus_ + != com.google.cloud.telcoautomation.v1.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, aggregatedStatus_); + } + for (int i = 0; i < resourceStatuses_.size(); i++) { + output.writeMessage(3, resourceStatuses_.get(i)); + } + 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 (aggregatedStatus_ + != com.google.cloud.telcoautomation.v1.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregatedStatus_); + } + for (int i = 0; i < resourceStatuses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceStatuses_.get(i)); + } + 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.telcoautomation.v1.ComputeDeploymentStatusResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse other = + (com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse) obj; + + if (!getName().equals(other.getName())) return false; + if (aggregatedStatus_ != other.aggregatedStatus_) return false; + if (!getResourceStatusesList().equals(other.getResourceStatusesList())) 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) + AGGREGATED_STATUS_FIELD_NUMBER; + hash = (53 * hash) + aggregatedStatus_; + if (getResourceStatusesCount() > 0) { + hash = (37 * hash) + RESOURCE_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getResourceStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse 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.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse 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.telcoautomation.v1.ComputeDeploymentStatusResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + 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.telcoautomation.v1.ComputeDeploymentStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse 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.telcoautomation.v1.ComputeDeploymentStatusResponse 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 object for `ComputeDeploymentStatus`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse) + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse.class, + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + aggregatedStatus_ = 0; + if (resourceStatusesBuilder_ == null) { + resourceStatuses_ = java.util.Collections.emptyList(); + } else { + resourceStatuses_ = null; + resourceStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse build() { + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse result = + new com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse result) { + if (resourceStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + resourceStatuses_ = java.util.Collections.unmodifiableList(resourceStatuses_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resourceStatuses_ = resourceStatuses_; + } else { + result.resourceStatuses_ = resourceStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aggregatedStatus_ = aggregatedStatus_; + } + } + + @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.telcoautomation.v1.ComputeDeploymentStatusResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.aggregatedStatus_ != 0) { + setAggregatedStatusValue(other.getAggregatedStatusValue()); + } + if (resourceStatusesBuilder_ == null) { + if (!other.resourceStatuses_.isEmpty()) { + if (resourceStatuses_.isEmpty()) { + resourceStatuses_ = other.resourceStatuses_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourceStatusesIsMutable(); + resourceStatuses_.addAll(other.resourceStatuses_); + } + onChanged(); + } + } else { + if (!other.resourceStatuses_.isEmpty()) { + if (resourceStatusesBuilder_.isEmpty()) { + resourceStatusesBuilder_.dispose(); + resourceStatusesBuilder_ = null; + resourceStatuses_ = other.resourceStatuses_; + bitField0_ = (bitField0_ & ~0x00000004); + resourceStatusesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceStatusesFieldBuilder() + : null; + } else { + resourceStatusesBuilder_.addAllMessages(other.resourceStatuses_); + } + } + } + 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 16: + { + aggregatedStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.telcoautomation.v1.ResourceStatus m = + input.readMessage( + com.google.cloud.telcoautomation.v1.ResourceStatus.parser(), + extensionRegistry); + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(m); + } else { + resourceStatusesBuilder_.addMessage(m); + } + 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.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int aggregatedStatus_ = 0; + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for aggregatedStatus. + */ + @java.lang.Override + public int getAggregatedStatusValue() { + return aggregatedStatus_; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for aggregatedStatus to set. + * @return This builder for chaining. + */ + public Builder setAggregatedStatusValue(int value) { + aggregatedStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aggregatedStatus. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Status getAggregatedStatus() { + com.google.cloud.telcoautomation.v1.Status result = + com.google.cloud.telcoautomation.v1.Status.forNumber(aggregatedStatus_); + return result == null ? com.google.cloud.telcoautomation.v1.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The aggregatedStatus to set. + * @return This builder for chaining. + */ + public Builder setAggregatedStatus(com.google.cloud.telcoautomation.v1.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + aggregatedStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregatedStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + aggregatedStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List resourceStatuses_ = + java.util.Collections.emptyList(); + + private void ensureResourceStatusesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + resourceStatuses_ = + new java.util.ArrayList( + resourceStatuses_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.ResourceStatus, + com.google.cloud.telcoautomation.v1.ResourceStatus.Builder, + com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder> + resourceStatusesBuilder_; + + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceStatusesList() { + if (resourceStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceStatuses_); + } else { + return resourceStatusesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getResourceStatusesCount() { + if (resourceStatusesBuilder_ == null) { + return resourceStatuses_.size(); + } else { + return resourceStatusesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.ResourceStatus getResourceStatuses(int index) { + if (resourceStatusesBuilder_ == null) { + return resourceStatuses_.get(index); + } else { + return resourceStatusesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceStatuses( + int index, com.google.cloud.telcoautomation.v1.ResourceStatus value) { + if (resourceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceStatusesIsMutable(); + resourceStatuses_.set(index, value); + onChanged(); + } else { + resourceStatusesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceStatuses( + int index, com.google.cloud.telcoautomation.v1.ResourceStatus.Builder builderForValue) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses(com.google.cloud.telcoautomation.v1.ResourceStatus value) { + if (resourceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(value); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + int index, com.google.cloud.telcoautomation.v1.ResourceStatus value) { + if (resourceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(index, value); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + com.google.cloud.telcoautomation.v1.ResourceStatus.Builder builderForValue) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(builderForValue.build()); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + int index, com.google.cloud.telcoautomation.v1.ResourceStatus.Builder builderForValue) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllResourceStatuses( + java.lang.Iterable values) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceStatuses_); + onChanged(); + } else { + resourceStatusesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceStatuses() { + if (resourceStatusesBuilder_ == null) { + resourceStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + resourceStatusesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeResourceStatuses(int index) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.remove(index); + onChanged(); + } else { + resourceStatusesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.ResourceStatus.Builder getResourceStatusesBuilder( + int index) { + return getResourceStatusesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder getResourceStatusesOrBuilder( + int index) { + if (resourceStatusesBuilder_ == null) { + return resourceStatuses_.get(index); + } else { + return resourceStatusesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceStatusesOrBuilderList() { + if (resourceStatusesBuilder_ != null) { + return resourceStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceStatuses_); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.ResourceStatus.Builder addResourceStatusesBuilder() { + return getResourceStatusesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.ResourceStatus.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.ResourceStatus.Builder addResourceStatusesBuilder( + int index) { + return getResourceStatusesFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1.ResourceStatus.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceStatusesBuilderList() { + return getResourceStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.ResourceStatus, + com.google.cloud.telcoautomation.v1.ResourceStatus.Builder, + com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder> + getResourceStatusesFieldBuilder() { + if (resourceStatusesBuilder_ == null) { + resourceStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.ResourceStatus, + com.google.cloud.telcoautomation.v1.ResourceStatus.Builder, + com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder>( + resourceStatuses_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + resourceStatuses_ = null; + } + return resourceStatusesBuilder_; + } + + @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.telcoautomation.v1.ComputeDeploymentStatusResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse) + private static final com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeDeploymentStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ComputeDeploymentStatusResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponseOrBuilder.java new file mode 100644 index 000000000000..b5b784949c64 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ComputeDeploymentStatusResponseOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ComputeDeploymentStatusResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for aggregatedStatus. + */ + int getAggregatedStatusValue(); + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status aggregated_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aggregatedStatus. + */ + com.google.cloud.telcoautomation.v1.Status getAggregatedStatus(); + + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getResourceStatusesList(); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.ResourceStatus getResourceStatuses(int index); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getResourceStatusesCount(); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceStatusesOrBuilderList(); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder getResourceStatusesOrBuilder( + int index); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequest.java new file mode 100644 index 000000000000..5f9f562b3675 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequest.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `CreateBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateBlueprintRequest} + */ +public final class CreateBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.CreateBlueprintRequest) + CreateBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateBlueprintRequest.newBuilder() to construct. + private CreateBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateBlueprintRequest() { + parent_ = ""; + blueprintId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 BLUEPRINT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object blueprintId_ = ""; + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blueprintId. + */ + @java.lang.Override + public java.lang.String getBlueprintId() { + java.lang.Object ref = blueprintId_; + 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(); + blueprintId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for blueprintId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlueprintIdBytes() { + java.lang.Object ref = blueprintId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blueprintId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLUEPRINT_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1.Blueprint blueprint_; + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + @java.lang.Override + public boolean hasBlueprint() { + return blueprint_ != null; + } + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintOrBuilder() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } + + 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(blueprintId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blueprintId_); + } + if (blueprint_ != null) { + output.writeMessage(3, getBlueprint()); + } + 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(blueprintId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blueprintId_); + } + if (blueprint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBlueprint()); + } + 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.telcoautomation.v1.CreateBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.CreateBlueprintRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBlueprintId().equals(other.getBlueprintId())) return false; + if (hasBlueprint() != other.hasBlueprint()) return false; + if (hasBlueprint()) { + if (!getBlueprint().equals(other.getBlueprint())) 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) + BLUEPRINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintId().hashCode(); + if (hasBlueprint()) { + hash = (37 * hash) + BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBlueprint().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest 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.telcoautomation.v1.CreateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest 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.telcoautomation.v1.CreateBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest 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.telcoautomation.v1.CreateBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest 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.telcoautomation.v1.CreateBlueprintRequest 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 object for `CreateBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.CreateBlueprintRequest) + com.google.cloud.telcoautomation.v1.CreateBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + blueprintId_ = ""; + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.CreateBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.CreateBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.CreateBlueprintRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.blueprintId_ = blueprintId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blueprint_ = blueprintBuilder_ == null ? blueprint_ : blueprintBuilder_.build(); + } + } + + @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.telcoautomation.v1.CreateBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.CreateBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.CreateBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.CreateBlueprintRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBlueprintId().isEmpty()) { + blueprintId_ = other.blueprintId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBlueprint()) { + mergeBlueprint(other.getBlueprint()); + } + 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: + { + blueprintId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getBlueprintFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 blueprintId_ = ""; + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blueprintId. + */ + public java.lang.String getBlueprintId() { + java.lang.Object ref = blueprintId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blueprintId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for blueprintId. + */ + public com.google.protobuf.ByteString getBlueprintIdBytes() { + java.lang.Object ref = blueprintId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blueprintId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The blueprintId to set. + * @return This builder for chaining. + */ + public Builder setBlueprintId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + blueprintId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBlueprintId() { + blueprintId_ = getDefaultInstance().getBlueprintId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for blueprintId to set. + * @return This builder for chaining. + */ + public Builder setBlueprintIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + blueprintId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.Blueprint blueprint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + blueprintBuilder_; + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + public boolean hasBlueprint() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint() { + if (blueprintBuilder_ == null) { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } else { + return blueprintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueprint_ = value; + } else { + blueprintBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint( + com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintBuilder_ == null) { + blueprint_ = builderForValue.build(); + } else { + blueprintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBlueprint(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && blueprint_ != null + && blueprint_ != com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()) { + getBlueprintBuilder().mergeFrom(value); + } else { + blueprint_ = value; + } + } else { + blueprintBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBlueprint() { + bitField0_ = (bitField0_ & ~0x00000004); + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder getBlueprintBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBlueprintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintOrBuilder() { + if (blueprintBuilder_ != null) { + return blueprintBuilder_.getMessageOrBuilder(); + } else { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + getBlueprintFieldBuilder() { + if (blueprintBuilder_ == null) { + blueprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder>( + getBlueprint(), getParentForChildren(), isClean()); + blueprint_ = null; + } + return blueprintBuilder_; + } + + @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.telcoautomation.v1.CreateBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.CreateBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.CreateBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.CreateBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.CreateBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.CreateBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..50e409b608eb --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateBlueprintRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface CreateBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.CreateBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blueprintId. + */ + java.lang.String getBlueprintId(); + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for blueprintId. + */ + com.google.protobuf.ByteString getBlueprintIdBytes(); + + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + boolean hasBlueprint(); + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + com.google.cloud.telcoautomation.v1.Blueprint getBlueprint(); + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequest.java new file mode 100644 index 000000000000..97e79b2ad9d9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequest.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `CreateDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateDeploymentRequest} + */ +public final class CreateDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.CreateDeploymentRequest) + CreateDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDeploymentRequest.newBuilder() to construct. + private CreateDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDeploymentRequest() { + parent_ = ""; + deploymentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 DEPLOYMENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + @java.lang.Override + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + 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(); + deploymentId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1.Deployment deployment_; + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return deployment_ != null; + } + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } + + 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(deploymentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deploymentId_); + } + if (deployment_ != null) { + output.writeMessage(3, getDeployment()); + } + 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(deploymentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deploymentId_); + } + if (deployment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeployment()); + } + 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.telcoautomation.v1.CreateDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.CreateDeploymentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDeploymentId().equals(other.getDeploymentId())) return false; + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) 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) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().hashCode(); + if (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest 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.telcoautomation.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest 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.telcoautomation.v1.CreateDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest 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.telcoautomation.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest 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.telcoautomation.v1.CreateDeploymentRequest 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 object for `CreateDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.CreateDeploymentRequest) + com.google.cloud.telcoautomation.v1.CreateDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + deploymentId_ = ""; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.CreateDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.CreateDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.CreateDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentId_ = deploymentId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + } + } + + @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.telcoautomation.v1.CreateDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.CreateDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.CreateDeploymentRequest other) { + if (other == com.google.cloud.telcoautomation.v1.CreateDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeploymentId().isEmpty()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + 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: + { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 deploymentId_ = ""; + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + deploymentBuilder_; + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.telcoautomation.v1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment( + com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000004); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDeploymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + getDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + @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.telcoautomation.v1.CreateDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.CreateDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.CreateDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.CreateDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.CreateDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.CreateDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..6649ba802d84 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateDeploymentRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface CreateDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.CreateDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString getDeploymentIdBytes(); + + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.telcoautomation.v1.Deployment getDeployment(); + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequest.java new file mode 100644 index 000000000000..9823198479e0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequest.java @@ -0,0 +1,1389 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for creating a EdgeSlm.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateEdgeSlmRequest} + */ +public final class CreateEdgeSlmRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) + CreateEdgeSlmRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEdgeSlmRequest.newBuilder() to construct. + private CreateEdgeSlmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEdgeSlmRequest() { + parent_ = ""; + edgeSlmId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEdgeSlmRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * 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. Value for parent.
+   * 
+ * + * + * 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 EDGE_SLM_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object edgeSlmId_ = ""; + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeSlmId. + */ + @java.lang.Override + public java.lang.String getEdgeSlmId() { + java.lang.Object ref = edgeSlmId_; + 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(); + edgeSlmId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeSlmId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEdgeSlmIdBytes() { + java.lang.Object ref = edgeSlmId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + edgeSlmId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDGE_SLM_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1.EdgeSlm edgeSlm_; + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the edgeSlm field is set. + */ + @java.lang.Override + public boolean hasEdgeSlm() { + return edgeSlm_ != null; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The edgeSlm. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlm() { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder getEdgeSlmOrBuilder() { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } + + 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
+   * the 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
+   * the 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(edgeSlmId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, edgeSlmId_); + } + if (edgeSlm_ != null) { + output.writeMessage(3, getEdgeSlm()); + } + 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(edgeSlmId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, edgeSlmId_); + } + if (edgeSlm_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEdgeSlm()); + } + 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.telcoautomation.v1.CreateEdgeSlmRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest other = + (com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getEdgeSlmId().equals(other.getEdgeSlmId())) return false; + if (hasEdgeSlm() != other.hasEdgeSlm()) return false; + if (hasEdgeSlm()) { + if (!getEdgeSlm().equals(other.getEdgeSlm())) 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) + EDGE_SLM_ID_FIELD_NUMBER; + hash = (53 * hash) + getEdgeSlmId().hashCode(); + if (hasEdgeSlm()) { + hash = (37 * hash) + EDGE_SLM_FIELD_NUMBER; + hash = (53 * hash) + getEdgeSlm().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.telcoautomation.v1.CreateEdgeSlmRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest 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.telcoautomation.v1.CreateEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest 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.telcoautomation.v1.CreateEdgeSlmRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest 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.telcoautomation.v1.CreateEdgeSlmRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest 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.telcoautomation.v1.CreateEdgeSlmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for creating a EdgeSlm.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateEdgeSlmRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + edgeSlmId_ = ""; + edgeSlm_ = null; + if (edgeSlmBuilder_ != null) { + edgeSlmBuilder_.dispose(); + edgeSlmBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest build() { + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest buildPartial() { + com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest result = + new com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.edgeSlmId_ = edgeSlmId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.edgeSlm_ = edgeSlmBuilder_ == null ? edgeSlm_ : edgeSlmBuilder_.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.telcoautomation.v1.CreateEdgeSlmRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest other) { + if (other == com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEdgeSlmId().isEmpty()) { + edgeSlmId_ = other.edgeSlmId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasEdgeSlm()) { + mergeEdgeSlm(other.getEdgeSlm()); + } + 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: + { + edgeSlmId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEdgeSlmFieldBuilder().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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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 edgeSlmId_ = ""; + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeSlmId. + */ + public java.lang.String getEdgeSlmId() { + java.lang.Object ref = edgeSlmId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + edgeSlmId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeSlmId. + */ + public com.google.protobuf.ByteString getEdgeSlmIdBytes() { + java.lang.Object ref = edgeSlmId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + edgeSlmId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The edgeSlmId to set. + * @return This builder for chaining. + */ + public Builder setEdgeSlmId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + edgeSlmId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEdgeSlmId() { + edgeSlmId_ = getDefaultInstance().getEdgeSlmId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for edgeSlmId to set. + * @return This builder for chaining. + */ + public Builder setEdgeSlmIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + edgeSlmId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.EdgeSlm edgeSlm_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.EdgeSlm, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder> + edgeSlmBuilder_; + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the edgeSlm field is set. + */ + public boolean hasEdgeSlm() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The edgeSlm. + */ + public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlm() { + if (edgeSlmBuilder_ == null) { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } else { + return edgeSlmBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEdgeSlm(com.google.cloud.telcoautomation.v1.EdgeSlm value) { + if (edgeSlmBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + edgeSlm_ = value; + } else { + edgeSlmBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEdgeSlm(com.google.cloud.telcoautomation.v1.EdgeSlm.Builder builderForValue) { + if (edgeSlmBuilder_ == null) { + edgeSlm_ = builderForValue.build(); + } else { + edgeSlmBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEdgeSlm(com.google.cloud.telcoautomation.v1.EdgeSlm value) { + if (edgeSlmBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && edgeSlm_ != null + && edgeSlm_ != com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance()) { + getEdgeSlmBuilder().mergeFrom(value); + } else { + edgeSlm_ = value; + } + } else { + edgeSlmBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEdgeSlm() { + bitField0_ = (bitField0_ & ~0x00000004); + edgeSlm_ = null; + if (edgeSlmBuilder_ != null) { + edgeSlmBuilder_.dispose(); + edgeSlmBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.EdgeSlm.Builder getEdgeSlmBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEdgeSlmFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder getEdgeSlmOrBuilder() { + if (edgeSlmBuilder_ != null) { + return edgeSlmBuilder_.getMessageOrBuilder(); + } else { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.EdgeSlm, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder> + getEdgeSlmFieldBuilder() { + if (edgeSlmBuilder_ == null) { + edgeSlmBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.EdgeSlm, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder>( + getEdgeSlm(), getParentForChildren(), isClean()); + edgeSlm_ = null; + } + return edgeSlmBuilder_; + } + + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1.CreateEdgeSlmRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) + private static final com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest(); + } + + public static com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEdgeSlmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.CreateEdgeSlmRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequestOrBuilder.java new file mode 100644 index 000000000000..ae5f68494ceb --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateEdgeSlmRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface CreateEdgeSlmRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.CreateEdgeSlmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeSlmId. + */ + java.lang.String getEdgeSlmId(); + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeSlmId. + */ + com.google.protobuf.ByteString getEdgeSlmIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the edgeSlm field is set. + */ + boolean hasEdgeSlm(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The edgeSlm. + */ + com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlm(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder getEdgeSlmOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequest.java new file mode 100644 index 000000000000..708969d24b72 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequest.java @@ -0,0 +1,1413 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for creating a OrchestrationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest} + */ +public final class CreateOrchestrationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) + CreateOrchestrationClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateOrchestrationClusterRequest.newBuilder() to construct. + private CreateOrchestrationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateOrchestrationClusterRequest() { + parent_ = ""; + orchestrationClusterId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateOrchestrationClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * 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. Value for parent.
+   * 
+ * + * + * 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 ORCHESTRATION_CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object orchestrationClusterId_ = ""; + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The orchestrationClusterId. + */ + @java.lang.Override + public java.lang.String getOrchestrationClusterId() { + java.lang.Object ref = orchestrationClusterId_; + 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(); + orchestrationClusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for orchestrationClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrchestrationClusterIdBytes() { + java.lang.Object ref = orchestrationClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORCHESTRATION_CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1.OrchestrationCluster orchestrationCluster_; + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the orchestrationCluster field is set. + */ + @java.lang.Override + public boolean hasOrchestrationCluster() { + return orchestrationCluster_ != null; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The orchestrationCluster. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationCluster() { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder + getOrchestrationClusterOrBuilder() { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } + + 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
+   * the 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
+   * the 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(orchestrationClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orchestrationClusterId_); + } + if (orchestrationCluster_ != null) { + output.writeMessage(3, getOrchestrationCluster()); + } + 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(orchestrationClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orchestrationClusterId_); + } + if (orchestrationCluster_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOrchestrationCluster()); + } + 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.telcoautomation.v1.CreateOrchestrationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest other = + (com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getOrchestrationClusterId().equals(other.getOrchestrationClusterId())) return false; + if (hasOrchestrationCluster() != other.hasOrchestrationCluster()) return false; + if (hasOrchestrationCluster()) { + if (!getOrchestrationCluster().equals(other.getOrchestrationCluster())) 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) + ORCHESTRATION_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationClusterId().hashCode(); + if (hasOrchestrationCluster()) { + hash = (37 * hash) + ORCHESTRATION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationCluster().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.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest 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.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest 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.telcoautomation.v1.CreateOrchestrationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + 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.telcoautomation.v1.CreateOrchestrationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest 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.telcoautomation.v1.CreateOrchestrationClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for creating a OrchestrationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + orchestrationClusterId_ = ""; + orchestrationCluster_ = null; + if (orchestrationClusterBuilder_ != null) { + orchestrationClusterBuilder_.dispose(); + orchestrationClusterBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest build() { + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest buildPartial() { + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest result = + new com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orchestrationClusterId_ = orchestrationClusterId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orchestrationCluster_ = + orchestrationClusterBuilder_ == null + ? orchestrationCluster_ + : orchestrationClusterBuilder_.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.telcoautomation.v1.CreateOrchestrationClusterRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrchestrationClusterId().isEmpty()) { + orchestrationClusterId_ = other.orchestrationClusterId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOrchestrationCluster()) { + mergeOrchestrationCluster(other.getOrchestrationCluster()); + } + 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: + { + orchestrationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getOrchestrationClusterFieldBuilder().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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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 orchestrationClusterId_ = ""; + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The orchestrationClusterId. + */ + public java.lang.String getOrchestrationClusterId() { + java.lang.Object ref = orchestrationClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orchestrationClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for orchestrationClusterId. + */ + public com.google.protobuf.ByteString getOrchestrationClusterIdBytes() { + java.lang.Object ref = orchestrationClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The orchestrationClusterId to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orchestrationClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOrchestrationClusterId() { + orchestrationClusterId_ = getDefaultInstance().getOrchestrationClusterId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for orchestrationClusterId to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orchestrationClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.OrchestrationCluster orchestrationCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder> + orchestrationClusterBuilder_; + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the orchestrationCluster field is set. + */ + public boolean hasOrchestrationCluster() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The orchestrationCluster. + */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationCluster() { + if (orchestrationClusterBuilder_ == null) { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } else { + return orchestrationClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrchestrationCluster( + com.google.cloud.telcoautomation.v1.OrchestrationCluster value) { + if (orchestrationClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + orchestrationCluster_ = value; + } else { + orchestrationClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrchestrationCluster( + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClusterBuilder_ == null) { + orchestrationCluster_ = builderForValue.build(); + } else { + orchestrationClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOrchestrationCluster( + com.google.cloud.telcoautomation.v1.OrchestrationCluster value) { + if (orchestrationClusterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && orchestrationCluster_ != null + && orchestrationCluster_ + != com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance()) { + getOrchestrationClusterBuilder().mergeFrom(value); + } else { + orchestrationCluster_ = value; + } + } else { + orchestrationClusterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOrchestrationCluster() { + bitField0_ = (bitField0_ & ~0x00000004); + orchestrationCluster_ = null; + if (orchestrationClusterBuilder_ != null) { + orchestrationClusterBuilder_.dispose(); + orchestrationClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder + getOrchestrationClusterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOrchestrationClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder + getOrchestrationClusterOrBuilder() { + if (orchestrationClusterBuilder_ != null) { + return orchestrationClusterBuilder_.getMessageOrBuilder(); + } else { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder> + getOrchestrationClusterFieldBuilder() { + if (orchestrationClusterBuilder_ == null) { + orchestrationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder>( + getOrchestrationCluster(), getParentForChildren(), isClean()); + orchestrationCluster_ = null; + } + return orchestrationClusterBuilder_; + } + + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1.CreateOrchestrationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) + private static final com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest(); + } + + public static com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOrchestrationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.CreateOrchestrationClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..f2046a72b3a0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/CreateOrchestrationClusterRequestOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface CreateOrchestrationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The orchestrationClusterId. + */ + java.lang.String getOrchestrationClusterId(); + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for orchestrationClusterId. + */ + com.google.protobuf.ByteString getOrchestrationClusterIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the orchestrationCluster field is set. + */ + boolean hasOrchestrationCluster(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The orchestrationCluster. + */ + com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationCluster(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder + getOrchestrationClusterOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequest.java new file mode 100644 index 000000000000..5d05112cba00 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequest.java @@ -0,0 +1,660 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `DeleteBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DeleteBlueprintRequest} + */ +public final class DeleteBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DeleteBlueprintRequest) + DeleteBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBlueprintRequest.newBuilder() to construct. + private DeleteBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * 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.telcoautomation.v1.DeleteBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest) 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.telcoautomation.v1.DeleteBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest 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.telcoautomation.v1.DeleteBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest 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.telcoautomation.v1.DeleteBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest 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.telcoautomation.v1.DeleteBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest 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.telcoautomation.v1.DeleteBlueprintRequest 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 object for `DeleteBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DeleteBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DeleteBlueprintRequest) + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest 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.telcoautomation.v1.DeleteBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest.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. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * 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. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * 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. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * 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.telcoautomation.v1.DeleteBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DeleteBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DeleteBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..470df83a0d13 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteBlueprintRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DeleteBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DeleteBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequest.java new file mode 100644 index 000000000000..ac5a525e61dd --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for deleting a EdgeSlm.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest} + */ +public final class DeleteEdgeSlmRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) + DeleteEdgeSlmRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEdgeSlmRequest.newBuilder() to construct. + private DeleteEdgeSlmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEdgeSlmRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEdgeSlmRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the 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
+   * the 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.telcoautomation.v1.DeleteEdgeSlmRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest other = + (com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) 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.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest 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.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest 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.telcoautomation.v1.DeleteEdgeSlmRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest 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.telcoautomation.v1.DeleteEdgeSlmRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest 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.telcoautomation.v1.DeleteEdgeSlmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for deleting a EdgeSlm.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest build() { + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest buildPartial() { + com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest result = + new com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest 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.telcoautomation.v1.DeleteEdgeSlmRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest other) { + if (other == com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest.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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1.DeleteEdgeSlmRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) + private static final com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest(); + } + + public static com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEdgeSlmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DeleteEdgeSlmRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequestOrBuilder.java new file mode 100644 index 000000000000..2ca0f5783d1c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteEdgeSlmRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DeleteEdgeSlmRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequest.java new file mode 100644 index 000000000000..f55f1217d445 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequest.java @@ -0,0 +1,917 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for deleting a OrchestrationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest} + */ +public final class DeleteOrchestrationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) + DeleteOrchestrationClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteOrchestrationClusterRequest.newBuilder() to construct. + private DeleteOrchestrationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteOrchestrationClusterRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteOrchestrationClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the 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
+   * the 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.telcoautomation.v1.DeleteOrchestrationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest other = + (com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) 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.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest 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.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest 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.telcoautomation.v1.DeleteOrchestrationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + 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.telcoautomation.v1.DeleteOrchestrationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest 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.telcoautomation.v1.DeleteOrchestrationClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for deleting a OrchestrationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest build() { + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest buildPartial() { + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest result = + new com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest 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.telcoautomation.v1.DeleteOrchestrationClusterRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + .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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1.DeleteOrchestrationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) + private static final com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest(); + } + + public static com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrchestrationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DeleteOrchestrationClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..2845af011fdf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeleteOrchestrationClusterRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DeleteOrchestrationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Deployment.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Deployment.java new file mode 100644 index 000000000000..10ddf8136242 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Deployment.java @@ -0,0 +1,4210 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Deployment contains a collection of YAML files (This collection is also known
+ * as package) that can to applied on an orchestration cluster (GKE cluster with
+ * TNA addons) or a workload cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.Deployment} + */ +public final class Deployment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + revisionId_ = ""; + sourceBlueprintRevision_ = ""; + state_ = 0; + displayName_ = ""; + repository_ = ""; + files_ = java.util.Collections.emptyList(); + sourceProvider_ = ""; + workloadCluster_ = ""; + deploymentLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Deployment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + 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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.Deployment.class, + com.google.cloud.telcoautomation.v1.Deployment.Builder.class); + } + + /** + * + * + *
+   * State defines which state the current deployment is in.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.Deployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A deployment starts in DRAFT state. All edits are made in DRAFT state. A
+     * deployment opened for editing after applying will be in draft state,
+     * while its prevision revision will be its current applied version.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * This state means that the contents (YAML files containing kubernetes
+     * resources) of the deployment have been applied to an Orchestration or
+     * Workload Cluster. A revision is created when a deployment is applied.
+     * This revision will represent the latest view of what is applied on the
+     * cluster until the deployment is modified and applied again, which will
+     * create a new revision.
+     * 
+ * + * APPLIED = 2; + */ + APPLIED(2), + /** + * + * + *
+     * A deployment in DELETING state has been marked for deletion. Its
+     * deletion status can be queried using `ComputeDeploymentStatus` API. No
+     * updates are allowed to a deployment in DELETING state.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A deployment starts in DRAFT state. All edits are made in DRAFT state. A
+     * deployment opened for editing after applying will be in draft state,
+     * while its prevision revision will be its current applied version.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
+     * This state means that the contents (YAML files containing kubernetes
+     * resources) of the deployment have been applied to an Orchestration or
+     * Workload Cluster. A revision is created when a deployment is applied.
+     * This revision will represent the latest view of what is applied on the
+     * cluster until the deployment is modified and applied again, which will
+     * create a new revision.
+     * 
+ * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + /** + * + * + *
+     * A deployment in DELETING state has been marked for deletion. Its
+     * deletion status can be queried using `ComputeDeploymentStatus` API. No
+     * updates are allowed to a deployment in DELETING state.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return APPLIED; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.Deployment.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.Deployment.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_BLUEPRINT_REVISION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBlueprintRevision_ = ""; + /** + * + * + *
+   * Required. The blueprint revision from which this deployment was created.
+   * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceBlueprintRevision. + */ + @java.lang.Override + public java.lang.String getSourceBlueprintRevision() { + java.lang.Object ref = sourceBlueprintRevision_; + 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(); + sourceBlueprintRevision_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The blueprint revision from which this deployment was created.
+   * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceBlueprintRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBlueprintRevisionBytes() { + java.lang.Object ref = sourceBlueprintRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprintRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp revisionCreateTime_; + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + @java.lang.Override + public boolean hasRevisionCreateTime() { + return revisionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRevisionCreateTime() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment.State getState() { + com.google.cloud.telcoautomation.v1.Deployment.State result = + com.google.cloud.telcoautomation.v1.Deployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.Deployment.State.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object repository_ = ""; + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + 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(); + repository_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List files_; + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Deployment_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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.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. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.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 = 11; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.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. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.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 SOURCE_PROVIDER_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + @java.lang.Override + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + 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(); + sourceProvider_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_CLUSTER_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadCluster_ = ""; + /** + * + * + *
+   * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+   * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadCluster. + */ + @java.lang.Override + public java.lang.String getWorkloadCluster() { + java.lang.Object ref = workloadCluster_; + 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(); + workloadCluster_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+   * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for workloadCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadClusterBytes() { + java.lang.Object ref = workloadCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_LEVEL_FIELD_NUMBER = 14; + private int deploymentLevel_ = 0; + /** + * + * + *
+   * Output only. Attributes to where the deployment can inflict changes. The
+   * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+   * Output only. Attributes to where the deployment can inflict changes. The
+   * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel() { + com.google.cloud.telcoautomation.v1.DeploymentLevel result = + com.google.cloud.telcoautomation.v1.DeploymentLevel.forNumber(deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentLevel.UNRECOGNIZED + : result; + } + + public static final int ROLLBACK_SUPPORT_FIELD_NUMBER = 15; + private boolean rollbackSupport_ = false; + /** + * + * + *
+   * Output only. Indicates if the deployment can be rolled back, exported from
+   * public blueprint.
+   * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + @java.lang.Override + public boolean getRollbackSupport() { + return rollbackSupport_; + } + + 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(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprintRevision_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceBlueprintRevision_); + } + if (revisionCreateTime_ != null) { + output.writeMessage(4, getRevisionCreateTime()); + } + if (state_ + != com.google.cloud.telcoautomation.v1.Deployment.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, repository_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(8, files_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (createTime_ != null) { + output.writeMessage(10, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(11, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, sourceProvider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, workloadCluster_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1.DeploymentLevel.DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, deploymentLevel_); + } + if (rollbackSupport_ != false) { + output.writeBool(15, rollbackSupport_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprintRevision_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBlueprintRevision_); + } + if (revisionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRevisionCreateTime()); + } + if (state_ + != com.google.cloud.telcoautomation.v1.Deployment.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, repository_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, files_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, sourceProvider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, workloadCluster_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1.DeploymentLevel.DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, deploymentLevel_); + } + if (rollbackSupport_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, rollbackSupport_); + } + 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.telcoautomation.v1.Deployment)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.Deployment other = + (com.google.cloud.telcoautomation.v1.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getSourceBlueprintRevision().equals(other.getSourceBlueprintRevision())) return false; + if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; + if (hasRevisionCreateTime()) { + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRepository().equals(other.getRepository())) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (!getSourceProvider().equals(other.getSourceProvider())) return false; + if (!getWorkloadCluster().equals(other.getWorkloadCluster())) return false; + if (deploymentLevel_ != other.deploymentLevel_) return false; + if (getRollbackSupport() != other.getRollbackSupport()) 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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (37 * hash) + SOURCE_BLUEPRINT_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getSourceBlueprintRevision().hashCode(); + if (hasRevisionCreateTime()) { + hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRevisionCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SOURCE_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvider().hashCode(); + hash = (37 * hash) + WORKLOAD_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadCluster().hashCode(); + hash = (37 * hash) + DEPLOYMENT_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + deploymentLevel_; + hash = (37 * hash) + ROLLBACK_SUPPORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRollbackSupport()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.Deployment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.Deployment 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.telcoautomation.v1.Deployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.Deployment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.Deployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.Deployment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.Deployment 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.telcoautomation.v1.Deployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.Deployment 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.telcoautomation.v1.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.Deployment 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.telcoautomation.v1.Deployment 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; + } + /** + * + * + *
+   * Deployment contains a collection of YAML files (This collection is also known
+   * as package) that can to applied on an orchestration cluster (GKE cluster with
+   * TNA addons) or a workload cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.Deployment) + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 9: + 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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.Deployment.class, + com.google.cloud.telcoautomation.v1.Deployment.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.Deployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + sourceBlueprintRevision_ = ""; + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + state_ = 0; + displayName_ = ""; + repository_ = ""; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + sourceProvider_ = ""; + workloadCluster_ = ""; + deploymentLevel_ = 0; + rollbackSupport_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment build() { + com.google.cloud.telcoautomation.v1.Deployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment buildPartial() { + com.google.cloud.telcoautomation.v1.Deployment result = + new com.google.cloud.telcoautomation.v1.Deployment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.telcoautomation.v1.Deployment result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceBlueprintRevision_ = sourceBlueprintRevision_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.repository_ = repository_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sourceProvider_ = sourceProvider_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.workloadCluster_ = workloadCluster_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.deploymentLevel_ = deploymentLevel_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.rollbackSupport_ = rollbackSupport_; + } + } + + @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.telcoautomation.v1.Deployment) { + return mergeFrom((com.google.cloud.telcoautomation.v1.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.Deployment other) { + if (other == com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSourceBlueprintRevision().isEmpty()) { + sourceBlueprintRevision_ = other.sourceBlueprintRevision_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRevisionCreateTime()) { + mergeRevisionCreateTime(other.getRevisionCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getSourceProvider().isEmpty()) { + sourceProvider_ = other.sourceProvider_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getWorkloadCluster().isEmpty()) { + workloadCluster_ = other.workloadCluster_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.deploymentLevel_ != 0) { + setDeploymentLevelValue(other.getDeploymentLevelValue()); + } + if (other.getRollbackSupport() != false) { + setRollbackSupport(other.getRollbackSupport()); + } + 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: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceBlueprintRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + repository_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.telcoautomation.v1.File m = + input.readMessage( + com.google.cloud.telcoautomation.v1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + sourceProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + workloadCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + deploymentLevel_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: + { + rollbackSupport_ = input.readBool(); + bitField0_ |= 0x00004000; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sourceBlueprintRevision_ = ""; + /** + * + * + *
+     * Required. The blueprint revision from which this deployment was created.
+     * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceBlueprintRevision. + */ + public java.lang.String getSourceBlueprintRevision() { + java.lang.Object ref = sourceBlueprintRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBlueprintRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The blueprint revision from which this deployment was created.
+     * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceBlueprintRevision. + */ + public com.google.protobuf.ByteString getSourceBlueprintRevisionBytes() { + java.lang.Object ref = sourceBlueprintRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprintRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The blueprint revision from which this deployment was created.
+     * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sourceBlueprintRevision to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprintRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBlueprintRevision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The blueprint revision from which this deployment was created.
+     * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSourceBlueprintRevision() { + sourceBlueprintRevision_ = getDefaultInstance().getSourceBlueprintRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The blueprint revision from which this deployment was created.
+     * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sourceBlueprintRevision to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprintRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBlueprintRevision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp revisionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + public boolean hasRevisionCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + public com.google.protobuf.Timestamp getRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } else { + return revisionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revisionCreateTime_ = value; + } else { + revisionCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = builderForValue.build(); + } else { + revisionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRevisionCreateTimeBuilder().mergeFrom(value); + } else { + revisionCreateTime_ = value; + } + } else { + revisionCreateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRevisionCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRevisionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + if (revisionCreateTimeBuilder_ != null) { + return revisionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRevisionCreateTimeFieldBuilder() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTime_ = null; + } + return revisionCreateTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment.State getState() { + com.google.cloud.telcoautomation.v1.Deployment.State result = + com.google.cloud.telcoautomation.v1.Deployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.Deployment.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.telcoautomation.v1.Deployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object repository_ = ""; + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + repository_ = getDefaultInstance().getRepository(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + 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_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + 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. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvider_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProvider() { + sourceProvider_ = getDefaultInstance().getSourceProvider(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProvider_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object workloadCluster_ = ""; + /** + * + * + *
+     * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+     * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadCluster. + */ + public java.lang.String getWorkloadCluster() { + java.lang.Object ref = workloadCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+     * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for workloadCluster. + */ + public com.google.protobuf.ByteString getWorkloadClusterBytes() { + java.lang.Object ref = workloadCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+     * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The workloadCluster to set. + * @return This builder for chaining. + */ + public Builder setWorkloadCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadCluster_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+     * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkloadCluster() { + workloadCluster_ = getDefaultInstance().getWorkloadCluster(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+     * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for workloadCluster to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadCluster_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private int deploymentLevel_ = 0; + /** + * + * + *
+     * Output only. Attributes to where the deployment can inflict changes. The
+     * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+     * Output only. Attributes to where the deployment can inflict changes. The
+     * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevelValue(int value) { + deploymentLevel_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Attributes to where the deployment can inflict changes. The
+     * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel() { + com.google.cloud.telcoautomation.v1.DeploymentLevel result = + com.google.cloud.telcoautomation.v1.DeploymentLevel.forNumber(deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Attributes to where the deployment can inflict changes. The
+     * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevel(com.google.cloud.telcoautomation.v1.DeploymentLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + deploymentLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Attributes to where the deployment can inflict changes. The
+     * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentLevel() { + bitField0_ = (bitField0_ & ~0x00002000); + deploymentLevel_ = 0; + onChanged(); + return this; + } + + private boolean rollbackSupport_; + /** + * + * + *
+     * Output only. Indicates if the deployment can be rolled back, exported from
+     * public blueprint.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + @java.lang.Override + public boolean getRollbackSupport() { + return rollbackSupport_; + } + /** + * + * + *
+     * Output only. Indicates if the deployment can be rolled back, exported from
+     * public blueprint.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The rollbackSupport to set. + * @return This builder for chaining. + */ + public Builder setRollbackSupport(boolean value) { + + rollbackSupport_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the deployment can be rolled back, exported from
+     * public blueprint.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRollbackSupport() { + bitField0_ = (bitField0_ & ~0x00004000); + rollbackSupport_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.Deployment) + private static final com.google.cloud.telcoautomation.v1.Deployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.Deployment(); + } + + public static com.google.cloud.telcoautomation.v1.Deployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Deployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.Deployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentLevel.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentLevel.java new file mode 100644 index 000000000000..97c213332dfb --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentLevel.java @@ -0,0 +1,221 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * DeploymentLevel of a blueprint signifies where the blueprint will be
+ * applied.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.DeploymentLevel} + */ +public enum DeploymentLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default unspecified deployment level.
+   * 
+ * + * DEPLOYMENT_LEVEL_UNSPECIFIED = 0; + */ + DEPLOYMENT_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * Blueprints at HYDRATION level cannot be used to create a Deployment
+   * (A user cannot manually initate deployment of these blueprints on
+   * orchestration or workload cluster).
+   * These blueprints stay in a user's private catalog and are configured and
+   * deployed by TNA automation.
+   * 
+ * + * HYDRATION = 1; + */ + HYDRATION(1), + /** + * + * + *
+   * Blueprints at SINGLE_DEPLOYMENT level can be
+   * a) Modified in private catalog.
+   * b) Used to create a deployment on orchestration cluster by the user, once
+   * approved.
+   * 
+ * + * SINGLE_DEPLOYMENT = 2; + */ + SINGLE_DEPLOYMENT(2), + /** + * + * + *
+   * Blueprints at MULTI_DEPLOYMENT level can be
+   * a) Modified in private catalog.
+   * b) Used to create a deployment on orchestration cluster which will create
+   * further hydrated deployments.
+   * 
+ * + * MULTI_DEPLOYMENT = 3; + */ + MULTI_DEPLOYMENT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default unspecified deployment level.
+   * 
+ * + * DEPLOYMENT_LEVEL_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Blueprints at HYDRATION level cannot be used to create a Deployment
+   * (A user cannot manually initate deployment of these blueprints on
+   * orchestration or workload cluster).
+   * These blueprints stay in a user's private catalog and are configured and
+   * deployed by TNA automation.
+   * 
+ * + * HYDRATION = 1; + */ + public static final int HYDRATION_VALUE = 1; + /** + * + * + *
+   * Blueprints at SINGLE_DEPLOYMENT level can be
+   * a) Modified in private catalog.
+   * b) Used to create a deployment on orchestration cluster by the user, once
+   * approved.
+   * 
+ * + * SINGLE_DEPLOYMENT = 2; + */ + public static final int SINGLE_DEPLOYMENT_VALUE = 2; + /** + * + * + *
+   * Blueprints at MULTI_DEPLOYMENT level can be
+   * a) Modified in private catalog.
+   * b) Used to create a deployment on orchestration cluster which will create
+   * further hydrated deployments.
+   * 
+ * + * MULTI_DEPLOYMENT = 3; + */ + public static final int MULTI_DEPLOYMENT_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeploymentLevel 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 DeploymentLevel forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_LEVEL_UNSPECIFIED; + case 1: + return HYDRATION; + case 2: + return SINGLE_DEPLOYMENT; + case 3: + return MULTI_DEPLOYMENT; + 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 DeploymentLevel findValueByNumber(int number) { + return DeploymentLevel.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.telcoautomation.v1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final DeploymentLevel[] VALUES = values(); + + public static DeploymentLevel 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 DeploymentLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.DeploymentLevel) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java new file mode 100644 index 000000000000..b304c67dc0b1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 DeploymentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + private final String deployment; + + @Deprecated + protected DeploymentName() { + project = null; + location = null; + orchestrationCluster = null; + deployment = null; + } + + private DeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeploymentName of( + String project, String location, String orchestrationCluster, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .build(); + } + + public static String format( + String project, String location, String orchestrationCluster, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .build() + .toString(); + } + + public static DeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT.validatedMatch( + formattedString, "DeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("orchestration_cluster"), + matchMap.get("deployment")); + } + + 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 (DeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + if (deployment != null) { + fieldMapBuilder.put("deployment", deployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT.instantiate( + "project", + project, + "location", + location, + "orchestration_cluster", + orchestrationCluster, + "deployment", + deployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeploymentName that = ((DeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster) + && Objects.equals(this.deployment, that.deployment); + } + 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(orchestrationCluster); + h *= 1000003; + h ^= Objects.hashCode(deployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + private String deployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + public Builder setDeployment(String deployment) { + this.deployment = deployment; + return this; + } + + private Builder(DeploymentName deploymentName) { + this.project = deploymentName.project; + this.location = deploymentName.location; + this.orchestrationCluster = deploymentName.orchestrationCluster; + this.deployment = deploymentName.deployment; + } + + public DeploymentName build() { + return new DeploymentName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentOrBuilder.java new file mode 100644 index 000000000000..3256b6863ebf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentOrBuilder.java @@ -0,0 +1,545 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
+   * Required. The blueprint revision from which this deployment was created.
+   * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceBlueprintRevision. + */ + java.lang.String getSourceBlueprintRevision(); + /** + * + * + *
+   * Required. The blueprint revision from which this deployment was created.
+   * 
+ * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceBlueprintRevision. + */ + com.google.protobuf.ByteString getSourceBlueprintRevisionBytes(); + + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + boolean hasRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + com.google.protobuf.Timestamp getRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED, DELETING).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1.Deployment.State getState(); + + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + java.lang.String getRepository(); + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.File getFiles(int index); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + java.lang.String getSourceProvider(); + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + com.google.protobuf.ByteString getSourceProviderBytes(); + + /** + * + * + *
+   * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+   * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadCluster. + */ + java.lang.String getWorkloadCluster(); + /** + * + * + *
+   * Optional. Immutable. The WorkloadCluster on which to create the Deployment.
+   * 
+ * + * + * string workload_cluster = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for workloadCluster. + */ + com.google.protobuf.ByteString getWorkloadClusterBytes(); + + /** + * + * + *
+   * Output only. Attributes to where the deployment can inflict changes. The
+   * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + int getDeploymentLevelValue(); + /** + * + * + *
+   * Output only. Attributes to where the deployment can inflict changes. The
+   * value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deploymentLevel. + */ + com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel(); + + /** + * + * + *
+   * Output only. Indicates if the deployment can be rolled back, exported from
+   * public blueprint.
+   * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + boolean getRollbackSupport(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentView.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentView.java new file mode 100644 index 000000000000..bb25a607ceca --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentView.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * DeploymentView defines the type of view of the deployment.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.DeploymentView} + */ +public enum DeploymentView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * DEPLOYMENT_VIEW_UNSPECIFIED = 0; + */ + DEPLOYMENT_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * DEPLOYMENT_VIEW_BASIC = 1; + */ + DEPLOYMENT_VIEW_BASIC(1), + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * DEPLOYMENT_VIEW_FULL = 2; + */ + DEPLOYMENT_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * DEPLOYMENT_VIEW_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * DEPLOYMENT_VIEW_BASIC = 1; + */ + public static final int DEPLOYMENT_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * DEPLOYMENT_VIEW_FULL = 2; + */ + public static final int DEPLOYMENT_VIEW_FULL_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 DeploymentView 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 DeploymentView forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_VIEW_UNSPECIFIED; + case 1: + return DEPLOYMENT_VIEW_BASIC; + case 2: + return DEPLOYMENT_VIEW_FULL; + 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 DeploymentView findValueByNumber(int number) { + return DeploymentView.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.telcoautomation.v1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DeploymentView[] VALUES = values(); + + public static DeploymentView 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 DeploymentView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.DeploymentView) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequest.java new file mode 100644 index 000000000000..12cfa3b28705 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `DiscardBlueprintChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest} + */ +public final class DiscardBlueprintChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) + DiscardBlueprintChangesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardBlueprintChangesRequest.newBuilder() to construct. + private DiscardBlueprintChangesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardBlueprintChangesRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardBlueprintChangesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest.class, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * 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.telcoautomation.v1.DiscardBlueprintChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest other = + (com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) 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.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest 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.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest 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.telcoautomation.v1.DiscardBlueprintChangesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + 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.telcoautomation.v1.DiscardBlueprintChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest 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.telcoautomation.v1.DiscardBlueprintChangesRequest 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 object for `DiscardBlueprintChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest.class, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest build() { + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest buildPartial() { + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest result = + new com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest 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.telcoautomation.v1.DiscardBlueprintChangesRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + .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. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * 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.telcoautomation.v1.DiscardBlueprintChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) + private static final com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest(); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardBlueprintChangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DiscardBlueprintChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequestOrBuilder.java new file mode 100644 index 000000000000..e88df8c0f347 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DiscardBlueprintChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponse.java new file mode 100644 index 000000000000..bafa800e6bf7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponse.java @@ -0,0 +1,443 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `DiscardBlueprintChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse} + */ +public final class DiscardBlueprintChangesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) + DiscardBlueprintChangesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardBlueprintChangesResponse.newBuilder() to construct. + private DiscardBlueprintChangesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardBlueprintChangesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardBlueprintChangesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse.class, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.telcoautomation.v1.DiscardBlueprintChangesResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse other = + (com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse 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.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse 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.telcoautomation.v1.DiscardBlueprintChangesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + 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.telcoautomation.v1.DiscardBlueprintChangesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse 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.telcoautomation.v1.DiscardBlueprintChangesResponse 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 object for `DiscardBlueprintChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse.class, + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse build() { + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse buildPartial() { + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse result = + new com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + .getDefaultInstance()) return this; + 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; + default: + { + 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; + } + + @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.telcoautomation.v1.DiscardBlueprintChangesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) + private static final com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse(); + } + + public static com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardBlueprintChangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DiscardBlueprintChangesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponseOrBuilder.java new file mode 100644 index 000000000000..f9cdd293c71f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardBlueprintChangesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DiscardBlueprintChangesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequest.java new file mode 100644 index 000000000000..5a6271cb4015 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `DiscardDeploymentChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest} + */ +public final class DiscardDeploymentChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) + DiscardDeploymentChangesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardDeploymentChangesRequest.newBuilder() to construct. + private DiscardDeploymentChangesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardDeploymentChangesRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardDeploymentChangesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest.class, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * 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.telcoautomation.v1.DiscardDeploymentChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest other = + (com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) 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.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest 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.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest 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.telcoautomation.v1.DiscardDeploymentChangesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + 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.telcoautomation.v1.DiscardDeploymentChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest 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.telcoautomation.v1.DiscardDeploymentChangesRequest 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 object for `DiscardDeploymentChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest.class, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest build() { + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest buildPartial() { + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest result = + new com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest 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.telcoautomation.v1.DiscardDeploymentChangesRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + .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. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * 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.telcoautomation.v1.DiscardDeploymentChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) + private static final com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest(); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardDeploymentChangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DiscardDeploymentChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequestOrBuilder.java new file mode 100644 index 000000000000..f8b38e18fb49 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DiscardDeploymentChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponse.java new file mode 100644 index 000000000000..57d8e59c5110 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponse.java @@ -0,0 +1,443 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `DiscardDeploymentChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse} + */ +public final class DiscardDeploymentChangesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) + DiscardDeploymentChangesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardDeploymentChangesResponse.newBuilder() to construct. + private DiscardDeploymentChangesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardDeploymentChangesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardDeploymentChangesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse.class, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.telcoautomation.v1.DiscardDeploymentChangesResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse other = + (com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse 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.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse 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.telcoautomation.v1.DiscardDeploymentChangesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + 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.telcoautomation.v1.DiscardDeploymentChangesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse 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.telcoautomation.v1.DiscardDeploymentChangesResponse 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 object for `DiscardDeploymentChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse.class, + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse build() { + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse buildPartial() { + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse result = + new com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + .getDefaultInstance()) return this; + 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; + default: + { + 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; + } + + @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.telcoautomation.v1.DiscardDeploymentChangesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) + private static final com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse(); + } + + public static com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardDeploymentChangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.DiscardDeploymentChangesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponseOrBuilder.java new file mode 100644 index 000000000000..0f7e7d606fad --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface DiscardDeploymentChangesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlm.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlm.java new file mode 100644 index 000000000000..35d69c44e9ce --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlm.java @@ -0,0 +1,2635 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * EdgeSlm represents an SLM instance which manages the lifecycle of edge
+ * components installed on Workload clusters managed by an Orchestration
+ * Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.EdgeSlm} + */ +public final class EdgeSlm extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.EdgeSlm) + EdgeSlmOrBuilder { + private static final long serialVersionUID = 0L; + // Use EdgeSlm.newBuilder() to construct. + private EdgeSlm(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EdgeSlm() { + name_ = ""; + orchestrationCluster_ = ""; + tnaVersion_ = ""; + state_ = 0; + workloadClusterType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EdgeSlm(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_EdgeSlm_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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_EdgeSlm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.EdgeSlm.class, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder.class); + } + + /** + * + * + *
+   * Possible states of the resource.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.EdgeSlm.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * EdgeSlm is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * EdgeSlm has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * EdgeSlm is being deleted.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
+     * EdgeSlm encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * EdgeSlm is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * EdgeSlm has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * EdgeSlm is being deleted.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
+     * EdgeSlm encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.EdgeSlm.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.EdgeSlm.State) + } + + /** + * + * + *
+   * Workload clusters supported by TNA. New values will be added to the enum
+   * list as TNA adds supports for new workload clusters in future.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType} + */ + public enum WorkloadClusterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified workload cluster.
+     * 
+ * + * WORKLOAD_CLUSTER_TYPE_UNSPECIFIED = 0; + */ + WORKLOAD_CLUSTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Workload cluster is a GDCE cluster.
+     * 
+ * + * GDCE = 1; + */ + GDCE(1), + /** + * + * + *
+     * Workload cluster is a GKE cluster.
+     * 
+ * + * GKE = 2; + */ + GKE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified workload cluster.
+     * 
+ * + * WORKLOAD_CLUSTER_TYPE_UNSPECIFIED = 0; + */ + public static final int WORKLOAD_CLUSTER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Workload cluster is a GDCE cluster.
+     * 
+ * + * GDCE = 1; + */ + public static final int GDCE_VALUE = 1; + /** + * + * + *
+     * Workload cluster is a GKE cluster.
+     * 
+ * + * GKE = 2; + */ + public static final int GKE_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 WorkloadClusterType 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 WorkloadClusterType forNumber(int value) { + switch (value) { + case 0: + return WORKLOAD_CLUSTER_TYPE_UNSPECIFIED; + case 1: + return GDCE; + case 2: + return GKE; + 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 WorkloadClusterType findValueByNumber(int number) { + return WorkloadClusterType.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.telcoautomation.v1.EdgeSlm.getDescriptor().getEnumTypes().get(1); + } + + private static final WorkloadClusterType[] VALUES = values(); + + public static WorkloadClusterType 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 WorkloadClusterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORCHESTRATION_CLUSTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orchestrationCluster_ = ""; + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The orchestrationCluster. + */ + @java.lang.Override + public java.lang.String getOrchestrationCluster() { + java.lang.Object ref = orchestrationCluster_; + 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(); + orchestrationCluster_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for orchestrationCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrchestrationClusterBytes() { + java.lang.Object ref = orchestrationCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationCluster_ = 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. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .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. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_EdgeSlm_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(); + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 TNA_VERSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + @java.lang.Override + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + 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(); + tnaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm.State getState() { + com.google.cloud.telcoautomation.v1.EdgeSlm.State result = + com.google.cloud.telcoautomation.v1.EdgeSlm.State.forNumber(state_); + return result == null ? com.google.cloud.telcoautomation.v1.EdgeSlm.State.UNRECOGNIZED : result; + } + + public static final int WORKLOAD_CLUSTER_TYPE_FIELD_NUMBER = 8; + private int workloadClusterType_ = 0; + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadClusterType. + */ + @java.lang.Override + public int getWorkloadClusterTypeValue() { + return workloadClusterType_; + } + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadClusterType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType getWorkloadClusterType() { + com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType result = + com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType.forNumber( + workloadClusterType_); + return result == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType.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(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(orchestrationCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orchestrationCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tnaVersion_); + } + if (state_ != com.google.cloud.telcoautomation.v1.EdgeSlm.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + if (workloadClusterType_ + != com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType + .WORKLOAD_CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, workloadClusterType_); + } + 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(orchestrationCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orchestrationCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tnaVersion_); + } + if (state_ != com.google.cloud.telcoautomation.v1.EdgeSlm.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (workloadClusterType_ + != com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType + .WORKLOAD_CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, workloadClusterType_); + } + 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.telcoautomation.v1.EdgeSlm)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.EdgeSlm other = + (com.google.cloud.telcoautomation.v1.EdgeSlm) obj; + + if (!getName().equals(other.getName())) return false; + if (!getOrchestrationCluster().equals(other.getOrchestrationCluster())) 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 (!getTnaVersion().equals(other.getTnaVersion())) return false; + if (state_ != other.state_) return false; + if (workloadClusterType_ != other.workloadClusterType_) 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) + ORCHESTRATION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationCluster().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) + TNA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTnaVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + WORKLOAD_CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + workloadClusterType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm 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.telcoautomation.v1.EdgeSlm parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm 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.telcoautomation.v1.EdgeSlm parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm 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.telcoautomation.v1.EdgeSlm parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm 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.telcoautomation.v1.EdgeSlm 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; + } + /** + * + * + *
+   * EdgeSlm represents an SLM instance which manages the lifecycle of edge
+   * components installed on Workload clusters managed by an Orchestration
+   * Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.EdgeSlm} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.EdgeSlm) + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_EdgeSlm_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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_EdgeSlm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.EdgeSlm.class, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.EdgeSlm.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + orchestrationCluster_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + tnaVersion_ = ""; + state_ = 0; + workloadClusterType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_EdgeSlm_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm build() { + com.google.cloud.telcoautomation.v1.EdgeSlm result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm buildPartial() { + com.google.cloud.telcoautomation.v1.EdgeSlm result = + new com.google.cloud.telcoautomation.v1.EdgeSlm(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.EdgeSlm result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orchestrationCluster_ = orchestrationCluster_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tnaVersion_ = tnaVersion_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.workloadClusterType_ = workloadClusterType_; + } + } + + @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.telcoautomation.v1.EdgeSlm) { + return mergeFrom((com.google.cloud.telcoautomation.v1.EdgeSlm) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.EdgeSlm other) { + if (other == com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrchestrationCluster().isEmpty()) { + orchestrationCluster_ = other.orchestrationCluster_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.getTnaVersion().isEmpty()) { + tnaVersion_ = other.tnaVersion_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.workloadClusterType_ != 0) { + setWorkloadClusterTypeValue(other.getWorkloadClusterTypeValue()); + } + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + orchestrationCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + tnaVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + workloadClusterType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + 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_ = ""; + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object orchestrationCluster_ = ""; + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The orchestrationCluster. + */ + public java.lang.String getOrchestrationCluster() { + java.lang.Object ref = orchestrationCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orchestrationCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for orchestrationCluster. + */ + public com.google.protobuf.ByteString getOrchestrationClusterBytes() { + java.lang.Object ref = orchestrationCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The orchestrationCluster to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orchestrationCluster_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOrchestrationCluster() { + orchestrationCluster_ = getDefaultInstance().getOrchestrationCluster(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for orchestrationCluster to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orchestrationCluster_ = value; + bitField0_ |= 0x00000002; + 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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private 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_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tnaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTnaVersion() { + tnaVersion_ = getDefaultInstance().getTnaVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm.State getState() { + com.google.cloud.telcoautomation.v1.EdgeSlm.State result = + com.google.cloud.telcoautomation.v1.EdgeSlm.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.telcoautomation.v1.EdgeSlm.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private int workloadClusterType_ = 0; + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadClusterType. + */ + @java.lang.Override + public int getWorkloadClusterTypeValue() { + return workloadClusterType_; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for workloadClusterType to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterTypeValue(int value) { + workloadClusterType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadClusterType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType + getWorkloadClusterType() { + com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType result = + com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType.forNumber( + workloadClusterType_); + return result == null + ? com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The workloadClusterType to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterType( + com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + workloadClusterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkloadClusterType() { + bitField0_ = (bitField0_ & ~0x00000080); + workloadClusterType_ = 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.telcoautomation.v1.EdgeSlm) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.EdgeSlm) + private static final com.google.cloud.telcoautomation.v1.EdgeSlm DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.EdgeSlm(); + } + + public static com.google.cloud.telcoautomation.v1.EdgeSlm getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EdgeSlm parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.EdgeSlm getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java new file mode 100644 index 000000000000..67d0572f8cc1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 EdgeSlmName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EDGE_SLM = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/edgeSlms/{edge_slm}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String edgeSlm; + + @Deprecated + protected EdgeSlmName() { + project = null; + location = null; + edgeSlm = null; + } + + private EdgeSlmName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + edgeSlm = Preconditions.checkNotNull(builder.getEdgeSlm()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEdgeSlm() { + return edgeSlm; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EdgeSlmName of(String project, String location, String edgeSlm) { + return newBuilder().setProject(project).setLocation(location).setEdgeSlm(edgeSlm).build(); + } + + public static String format(String project, String location, String edgeSlm) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEdgeSlm(edgeSlm) + .build() + .toString(); + } + + public static EdgeSlmName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EDGE_SLM.validatedMatch( + formattedString, "EdgeSlmName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("edge_slm")); + } + + 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 (EdgeSlmName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EDGE_SLM.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 (edgeSlm != null) { + fieldMapBuilder.put("edge_slm", edgeSlm); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EDGE_SLM.instantiate( + "project", project, "location", location, "edge_slm", edgeSlm); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EdgeSlmName that = ((EdgeSlmName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.edgeSlm, that.edgeSlm); + } + 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(edgeSlm); + return h; + } + + /** Builder for projects/{project}/locations/{location}/edgeSlms/{edge_slm}. */ + public static class Builder { + private String project; + private String location; + private String edgeSlm; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEdgeSlm() { + return edgeSlm; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEdgeSlm(String edgeSlm) { + this.edgeSlm = edgeSlm; + return this; + } + + private Builder(EdgeSlmName edgeSlmName) { + this.project = edgeSlmName.project; + this.location = edgeSlmName.location; + this.edgeSlm = edgeSlmName.edgeSlm; + } + + public EdgeSlmName build() { + return new EdgeSlmName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmOrBuilder.java new file mode 100644 index 000000000000..32750776a3f9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmOrBuilder.java @@ -0,0 +1,307 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface EdgeSlmOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.EdgeSlm) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The orchestrationCluster. + */ + java.lang.String getOrchestrationCluster(); + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for orchestrationCluster. + */ + com.google.protobuf.ByteString getOrchestrationClusterBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + java.lang.String getTnaVersion(); + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + com.google.protobuf.ByteString getTnaVersionBytes(); + + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1.EdgeSlm.State getState(); + + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadClusterType. + */ + int getWorkloadClusterTypeValue(); + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadClusterType. + */ + com.google.cloud.telcoautomation.v1.EdgeSlm.WorkloadClusterType getWorkloadClusterType(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/File.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/File.java new file mode 100644 index 000000000000..2bf2a4247915 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/File.java @@ -0,0 +1,1001 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * File represents a yaml file present in a blueprint's package.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.File} + */ +public final class File extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.File) + FileOrBuilder { + private static final long serialVersionUID = 0L; + // Use File.newBuilder() to construct. + private File(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private File() { + path_ = ""; + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new File(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.File.class, + com.google.cloud.telcoautomation.v1.File.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + 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(); + path_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETED_FIELD_NUMBER = 3; + private boolean deleted_ = false; + /** + * + * + *
+   * Optional. Signifies whether a file is marked for deletion.
+   * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + public static final int EDITABLE_FIELD_NUMBER = 4; + private boolean editable_ = false; + /** + * + * + *
+   * Optional. Indicates whether changes are allowed to a file. If the field is
+   * not set, the file cannot be edited.
+   * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The editable. + */ + @java.lang.Override + public boolean getEditable() { + return editable_; + } + + 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(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); + } + if (deleted_ != false) { + output.writeBool(3, deleted_); + } + if (editable_ != false) { + output.writeBool(4, editable_); + } + 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(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, deleted_); + } + if (editable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, editable_); + } + 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.telcoautomation.v1.File)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.File other = (com.google.cloud.telcoautomation.v1.File) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getContent().equals(other.getContent())) return false; + if (getDeleted() != other.getDeleted()) return false; + if (getEditable() != other.getEditable()) 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) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (37 * hash) + EDITABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEditable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.File parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.File 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.telcoautomation.v1.File parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.File parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.File parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.File parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.File parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.File 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.telcoautomation.v1.File parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.File 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.telcoautomation.v1.File parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.File 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.telcoautomation.v1.File 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; + } + /** + * + * + *
+   * File represents a yaml file present in a blueprint's package.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.File} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.File) + com.google.cloud.telcoautomation.v1.FileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.File.class, + com.google.cloud.telcoautomation.v1.File.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.File.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + content_ = ""; + deleted_ = false; + editable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_File_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.File getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.File.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.File build() { + com.google.cloud.telcoautomation.v1.File result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.File buildPartial() { + com.google.cloud.telcoautomation.v1.File result = + new com.google.cloud.telcoautomation.v1.File(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.File result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deleted_ = deleted_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.editable_ = editable_; + } + } + + @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.telcoautomation.v1.File) { + return mergeFrom((com.google.cloud.telcoautomation.v1.File) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.File other) { + if (other == com.google.cloud.telcoautomation.v1.File.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + if (other.getEditable() != false) { + setEditable(other.getEditable()); + } + 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: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + deleted_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + editable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + 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 path_ = ""; + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean deleted_; + /** + * + * + *
+     * Optional. Signifies whether a file is marked for deletion.
+     * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + /** + * + * + *
+     * Optional. Signifies whether a file is marked for deletion.
+     * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(boolean value) { + + deleted_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Signifies whether a file is marked for deletion.
+     * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeleted() { + bitField0_ = (bitField0_ & ~0x00000004); + deleted_ = false; + onChanged(); + return this; + } + + private boolean editable_; + /** + * + * + *
+     * Optional. Indicates whether changes are allowed to a file. If the field is
+     * not set, the file cannot be edited.
+     * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The editable. + */ + @java.lang.Override + public boolean getEditable() { + return editable_; + } + /** + * + * + *
+     * Optional. Indicates whether changes are allowed to a file. If the field is
+     * not set, the file cannot be edited.
+     * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The editable to set. + * @return This builder for chaining. + */ + public Builder setEditable(boolean value) { + + editable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether changes are allowed to a file. If the field is
+     * not set, the file cannot be edited.
+     * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEditable() { + bitField0_ = (bitField0_ & ~0x00000008); + editable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.File) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.File) + private static final com.google.cloud.telcoautomation.v1.File DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.File(); + } + + public static com.google.cloud.telcoautomation.v1.File getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.File getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FileOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FileOrBuilder.java new file mode 100644 index 000000000000..5d72fcd104b4 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FileOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface FileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.File) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
+   * Optional. Signifies whether a file is marked for deletion.
+   * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleted. + */ + boolean getDeleted(); + + /** + * + * + *
+   * Optional. Indicates whether changes are allowed to a file. If the field is
+   * not set, the file cannot be edited.
+   * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The editable. + */ + boolean getEditable(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfig.java new file mode 100644 index 000000000000..23a57ac68c5f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfig.java @@ -0,0 +1,2158 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Configuration of the full (Autopilot) cluster management
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.FullManagementConfig} + */ +public final class FullManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.FullManagementConfig) + FullManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FullManagementConfig.newBuilder() to construct. + private FullManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FullManagementConfig() { + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FullManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.FullManagementConfig.class, + com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 SUBNET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnet_ = ""; + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + 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(); + subnet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + 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(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_CIDR_BLOCK_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + 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(); + clusterCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_CIDR_BLOCK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + 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(); + servicesCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAMED_RANGE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + @java.lang.Override + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + 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(); + clusterNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_NAMED_RANGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + @java.lang.Override + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + 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(); + servicesNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(8, getMasterAuthorizedNetworksConfig()); + } + 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(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMasterAuthorizedNetworksConfig()); + } + 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.telcoautomation.v1.FullManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.FullManagementConfig other = + (com.google.cloud.telcoautomation.v1.FullManagementConfig) obj; + + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (!getClusterCidrBlock().equals(other.getClusterCidrBlock())) return false; + if (!getServicesCidrBlock().equals(other.getServicesCidrBlock())) return false; + if (!getClusterNamedRange().equals(other.getClusterNamedRange())) return false; + if (!getServicesNamedRange().equals(other.getServicesNamedRange())) return false; + if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) + return false; + if (hasMasterAuthorizedNetworksConfig()) { + if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) + 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterCidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesCidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getClusterNamedRange().hashCode(); + hash = (37 * hash) + SERVICES_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getServicesNamedRange().hashCode(); + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig 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.telcoautomation.v1.FullManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig 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.telcoautomation.v1.FullManagementConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig 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.telcoautomation.v1.FullManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig 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.telcoautomation.v1.FullManagementConfig 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; + } + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.FullManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.FullManagementConfig) + com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.FullManagementConfig.class, + com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.FullManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfig getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfig build() { + com.google.cloud.telcoautomation.v1.FullManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfig buildPartial() { + com.google.cloud.telcoautomation.v1.FullManagementConfig result = + new com.google.cloud.telcoautomation.v1.FullManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.FullManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnet_ = subnet_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterCidrBlock_ = clusterCidrBlock_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.servicesCidrBlock_ = servicesCidrBlock_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clusterNamedRange_ = clusterNamedRange_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.servicesNamedRange_ = servicesNamedRange_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.masterAuthorizedNetworksConfig_ = + masterAuthorizedNetworksConfigBuilder_ == null + ? masterAuthorizedNetworksConfig_ + : masterAuthorizedNetworksConfigBuilder_.build(); + } + } + + @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.telcoautomation.v1.FullManagementConfig) { + return mergeFrom((com.google.cloud.telcoautomation.v1.FullManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.FullManagementConfig other) { + if (other == com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance()) + return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnet().isEmpty()) { + subnet_ = other.subnet_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterCidrBlock().isEmpty()) { + clusterCidrBlock_ = other.clusterCidrBlock_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getServicesCidrBlock().isEmpty()) { + servicesCidrBlock_ = other.servicesCidrBlock_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getClusterNamedRange().isEmpty()) { + clusterNamedRange_ = other.clusterNamedRange_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getServicesNamedRange().isEmpty()) { + servicesNamedRange_ = other.servicesNamedRange_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + 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: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + clusterCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + servicesCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + clusterNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + servicesNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + 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 network_ = ""; + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnet_ = ""; + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + subnet_ = getDefaultInstance().getSubnet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterCidrBlock() { + clusterCidrBlock_ = getDefaultInstance().getClusterCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesCidrBlock() { + servicesCidrBlock_ = getDefaultInstance().getServicesCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterNamedRange() { + clusterNamedRange_ = getDefaultInstance().getClusterNamedRange(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesNamedRange() { + servicesNamedRange_ = getDefaultInstance().getServicesNamedRange(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder> + masterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder + builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && masterAuthorizedNetworksConfig_ != null + && masterAuthorizedNetworksConfig_ + != com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance()) { + getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + masterAuthorizedNetworksConfig_ = value; + } + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + @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.telcoautomation.v1.FullManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.FullManagementConfig) + private static final com.google.cloud.telcoautomation.v1.FullManagementConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.FullManagementConfig(); + } + + public static com.google.cloud.telcoautomation.v1.FullManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FullManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.FullManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfigOrBuilder.java new file mode 100644 index 000000000000..c62c197088a5 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/FullManagementConfigOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface FullManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.FullManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + java.lang.String getClusterCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + com.google.protobuf.ByteString getClusterCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + java.lang.String getServicesCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + com.google.protobuf.ByteString getServicesCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + java.lang.String getClusterNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + com.google.protobuf.ByteString getClusterNamedRangeBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + java.lang.String getServicesNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + com.google.protobuf.ByteString getServicesNamedRangeBytes(); + + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequest.java new file mode 100644 index 000000000000..3727744835f9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequest.java @@ -0,0 +1,842 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `GetBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetBlueprintRequest} + */ +public final class GetBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.GetBlueprintRequest) + GetBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBlueprintRequest.newBuilder() to construct. + private GetBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBlueprintRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.GetBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * 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 VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintView getView() { + com.google.cloud.telcoautomation.v1.BlueprintView result = + com.google.cloud.telcoautomation.v1.BlueprintView.forNumber(view_); + return result == null ? com.google.cloud.telcoautomation.v1.BlueprintView.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ + != com.google.cloud.telcoautomation.v1.BlueprintView.BLUEPRINT_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + 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 (view_ + != com.google.cloud.telcoautomation.v1.BlueprintView.BLUEPRINT_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + 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.telcoautomation.v1.GetBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.GetBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.GetBlueprintRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest 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.telcoautomation.v1.GetBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest 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.telcoautomation.v1.GetBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest 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.telcoautomation.v1.GetBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest 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.telcoautomation.v1.GetBlueprintRequest 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 object for `GetBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.GetBlueprintRequest) + com.google.cloud.telcoautomation.v1.GetBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.GetBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.GetBlueprintRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.GetBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.GetBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.GetBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.GetBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.GetBlueprintRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @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.telcoautomation.v1.GetBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.GetBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.GetBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.GetBlueprintRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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 16: + { + view_ = input.readEnum(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * 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. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * 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. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * 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 int view_ = 0; + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintView getView() { + com.google.cloud.telcoautomation.v1.BlueprintView result = + com.google.cloud.telcoautomation.v1.BlueprintView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1.BlueprintView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.telcoautomation.v1.BlueprintView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 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.telcoautomation.v1.GetBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.GetBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.GetBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.GetBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.GetBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.GetBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..f4da1d751247 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetBlueprintRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface GetBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.GetBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.telcoautomation.v1.BlueprintView getView(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequest.java new file mode 100644 index 000000000000..b836e97e8a04 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequest.java @@ -0,0 +1,851 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `GetDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetDeploymentRequest} + */ +public final class GetDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.GetDeploymentRequest) + GetDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDeploymentRequest.newBuilder() to construct. + private GetDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeploymentRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.GetDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * 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 VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentView getView() { + com.google.cloud.telcoautomation.v1.DeploymentView result = + com.google.cloud.telcoautomation.v1.DeploymentView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentView.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ + != com.google.cloud.telcoautomation.v1.DeploymentView.DEPLOYMENT_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + 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 (view_ + != com.google.cloud.telcoautomation.v1.DeploymentView.DEPLOYMENT_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + 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.telcoautomation.v1.GetDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.GetDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.GetDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest 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.telcoautomation.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest 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.telcoautomation.v1.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest 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.telcoautomation.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest 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.telcoautomation.v1.GetDeploymentRequest 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 object for `GetDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.GetDeploymentRequest) + com.google.cloud.telcoautomation.v1.GetDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.GetDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.GetDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.GetDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.GetDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.GetDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.GetDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.GetDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @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.telcoautomation.v1.GetDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.GetDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.GetDeploymentRequest other) { + if (other == com.google.cloud.telcoautomation.v1.GetDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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 16: + { + view_ = input.readEnum(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * 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. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * 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. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * 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 int view_ = 0; + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentView getView() { + com.google.cloud.telcoautomation.v1.DeploymentView result = + com.google.cloud.telcoautomation.v1.DeploymentView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.telcoautomation.v1.DeploymentView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 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.telcoautomation.v1.GetDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.GetDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.GetDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.GetDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.GetDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.GetDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..766cb29190b6 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetDeploymentRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface GetDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.GetDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.telcoautomation.v1.DeploymentView getView(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequest.java new file mode 100644 index 000000000000..f334c7ff3f9d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for getting a EdgeSlm.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetEdgeSlmRequest} + */ +public final class GetEdgeSlmRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.GetEdgeSlmRequest) + GetEdgeSlmRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEdgeSlmRequest.newBuilder() to construct. + private GetEdgeSlmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEdgeSlmRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEdgeSlmRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1.GetEdgeSlmRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest other = + (com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest) 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.telcoautomation.v1.GetEdgeSlmRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest 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.telcoautomation.v1.GetEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest 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.telcoautomation.v1.GetEdgeSlmRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest 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.telcoautomation.v1.GetEdgeSlmRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest 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.telcoautomation.v1.GetEdgeSlmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a EdgeSlm.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetEdgeSlmRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.GetEdgeSlmRequest) + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest build() { + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest buildPartial() { + com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest result = + new com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest 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.telcoautomation.v1.GetEdgeSlmRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest other) { + if (other == com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest.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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.telcoautomation.v1.GetEdgeSlmRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.GetEdgeSlmRequest) + private static final com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest(); + } + + public static com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEdgeSlmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.GetEdgeSlmRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequestOrBuilder.java new file mode 100644 index 000000000000..a42d6fa3edf0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetEdgeSlmRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface GetEdgeSlmRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.GetEdgeSlmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequest.java new file mode 100644 index 000000000000..6e8d1f69bd77 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `GetHydratedDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest} + */ +public final class GetHydratedDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) + GetHydratedDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHydratedDeploymentRequest.newBuilder() to construct. + private GetHydratedDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetHydratedDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetHydratedDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the hydrated deployment.
+   * 
+ * + * + * 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 hydrated deployment.
+   * 
+ * + * + * 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.telcoautomation.v1.GetHydratedDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) 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.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest 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.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest 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.telcoautomation.v1.GetHydratedDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest 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.telcoautomation.v1.GetHydratedDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest 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.telcoautomation.v1.GetHydratedDeploymentRequest 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 object for `GetHydratedDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest 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.telcoautomation.v1.GetHydratedDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest.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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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.telcoautomation.v1.GetHydratedDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHydratedDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.GetHydratedDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..fc9772fd74da --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetHydratedDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface GetHydratedDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the hydrated deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the hydrated deployment.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequest.java new file mode 100644 index 000000000000..f4561bfc8e17 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for getting a OrchestrationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest} + */ +public final class GetOrchestrationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) + GetOrchestrationClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrchestrationClusterRequest.newBuilder() to construct. + private GetOrchestrationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOrchestrationClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOrchestrationClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1.GetOrchestrationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest other = + (com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) 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.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest 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.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest 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.telcoautomation.v1.GetOrchestrationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + 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.telcoautomation.v1.GetOrchestrationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest 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.telcoautomation.v1.GetOrchestrationClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a OrchestrationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest build() { + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest buildPartial() { + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest result = + new com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest 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.telcoautomation.v1.GetOrchestrationClusterRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + .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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.telcoautomation.v1.GetOrchestrationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) + private static final com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest(); + } + + public static com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrchestrationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.GetOrchestrationClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..148206fe8d08 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetOrchestrationClusterRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface GetOrchestrationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequest.java new file mode 100644 index 000000000000..b2c1a3d27963 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequest.java @@ -0,0 +1,643 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `GetPublicBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetPublicBlueprintRequest} + */ +public final class GetPublicBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) + GetPublicBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPublicBlueprintRequest.newBuilder() to construct. + private GetPublicBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPublicBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPublicBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * 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.telcoautomation.v1.GetPublicBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) 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.telcoautomation.v1.GetPublicBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest 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.telcoautomation.v1.GetPublicBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest 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.telcoautomation.v1.GetPublicBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest 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.telcoautomation.v1.GetPublicBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest 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.telcoautomation.v1.GetPublicBlueprintRequest 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 object for `GetPublicBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.GetPublicBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest 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.telcoautomation.v1.GetPublicBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest.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. The name of the public blueprint.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the public blueprint.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the public blueprint.
+     * 
+ * + * + * 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. The name of the public blueprint.
+     * 
+ * + * + * 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. The name of the public blueprint.
+     * 
+ * + * + * 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.telcoautomation.v1.GetPublicBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPublicBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.GetPublicBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..e9e4b716a8a6 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/GetPublicBlueprintRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface GetPublicBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.GetPublicBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeployment.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeployment.java new file mode 100644 index 000000000000..d0c63b3c457b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeployment.java @@ -0,0 +1,1756 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * A collection of kubernetes yaml files which are deployed on a Workload
+ * Cluster. Hydrated Deployments are created by TNA intent based automation.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.HydratedDeployment} + */ +public final class HydratedDeployment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.HydratedDeployment) + HydratedDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + // Use HydratedDeployment.newBuilder() to construct. + private HydratedDeployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HydratedDeployment() { + name_ = ""; + state_ = 0; + files_ = java.util.Collections.emptyList(); + workloadCluster_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HydratedDeployment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.HydratedDeployment.class, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder.class); + } + + /** + * + * + *
+   * State defines which state the current hydrated deployment is in.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.HydratedDeployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A hydrated deployment starts in DRAFT state. All edits are made in DRAFT
+     * state.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * When the edit is applied, the hydrated deployment moves to APPLIED
+     * state. No changes can be made once a hydrated deployment is applied.
+     * 
+ * + * APPLIED = 2; + */ + APPLIED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A hydrated deployment starts in DRAFT state. All edits are made in DRAFT
+     * state.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
+     * When the edit is applied, the hydrated deployment moves to APPLIED
+     * state. No changes can be made once a hydrated deployment is applied.
+     * 
+ * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return APPLIED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.HydratedDeployment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.HydratedDeployment.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment.State getState() { + com.google.cloud.telcoautomation.v1.HydratedDeployment.State result = + com.google.cloud.telcoautomation.v1.HydratedDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.HydratedDeployment.State.UNRECOGNIZED + : result; + } + + public static final int FILES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List files_; + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int WORKLOAD_CLUSTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadCluster_ = ""; + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadCluster. + */ + @java.lang.Override + public java.lang.String getWorkloadCluster() { + java.lang.Object ref = workloadCluster_; + 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(); + workloadCluster_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadClusterBytes() { + java.lang.Object ref = workloadCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadCluster_ = 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 (state_ + != com.google.cloud.telcoautomation.v1.HydratedDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(3, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workloadCluster_); + } + 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 (state_ + != com.google.cloud.telcoautomation.v1.HydratedDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workloadCluster_); + } + 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.telcoautomation.v1.HydratedDeployment)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.HydratedDeployment other = + (com.google.cloud.telcoautomation.v1.HydratedDeployment) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!getWorkloadCluster().equals(other.getWorkloadCluster())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + WORKLOAD_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadCluster().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment 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.telcoautomation.v1.HydratedDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment 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.telcoautomation.v1.HydratedDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment 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.telcoautomation.v1.HydratedDeployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment 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.telcoautomation.v1.HydratedDeployment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A collection of kubernetes yaml files which are deployed on a Workload
+   * Cluster. Hydrated Deployments are created by TNA intent based automation.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.HydratedDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.HydratedDeployment) + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.HydratedDeployment.class, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.HydratedDeployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + workloadCluster_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment build() { + com.google.cloud.telcoautomation.v1.HydratedDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment buildPartial() { + com.google.cloud.telcoautomation.v1.HydratedDeployment result = + new com.google.cloud.telcoautomation.v1.HydratedDeployment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.HydratedDeployment result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.HydratedDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workloadCluster_ = workloadCluster_; + } + } + + @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.telcoautomation.v1.HydratedDeployment) { + return mergeFrom((com.google.cloud.telcoautomation.v1.HydratedDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.HydratedDeployment other) { + if (other == com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000004); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + if (!other.getWorkloadCluster().isEmpty()) { + workloadCluster_ = other.workloadCluster_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.telcoautomation.v1.File m = + input.readMessage( + com.google.cloud.telcoautomation.v1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + workloadCluster_ = 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 name_ = ""; + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment.State getState() { + com.google.cloud.telcoautomation.v1.HydratedDeployment.State result = + com.google.cloud.telcoautomation.v1.HydratedDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.HydratedDeployment.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.telcoautomation.v1.HydratedDeployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.telcoautomation.v1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.telcoautomation.v1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.File, + com.google.cloud.telcoautomation.v1.File.Builder, + com.google.cloud.telcoautomation.v1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + private java.lang.Object workloadCluster_ = ""; + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadCluster. + */ + public java.lang.String getWorkloadCluster() { + java.lang.Object ref = workloadCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadCluster. + */ + public com.google.protobuf.ByteString getWorkloadClusterBytes() { + java.lang.Object ref = workloadCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workloadCluster to set. + * @return This builder for chaining. + */ + public Builder setWorkloadCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadCluster_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadCluster() { + workloadCluster_ = getDefaultInstance().getWorkloadCluster(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workloadCluster to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadCluster_ = 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.telcoautomation.v1.HydratedDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.HydratedDeployment) + private static final com.google.cloud.telcoautomation.v1.HydratedDeployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.HydratedDeployment(); + } + + public static com.google.cloud.telcoautomation.v1.HydratedDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HydratedDeployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.HydratedDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java new file mode 100644 index 000000000000..4627845af0ca --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java @@ -0,0 +1,308 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 HydratedDeploymentName implements ResourceName { + private static final PathTemplate + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}/hydratedDeployments/{hydrated_deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + private final String deployment; + private final String hydratedDeployment; + + @Deprecated + protected HydratedDeploymentName() { + project = null; + location = null; + orchestrationCluster = null; + deployment = null; + hydratedDeployment = null; + } + + private HydratedDeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + hydratedDeployment = Preconditions.checkNotNull(builder.getHydratedDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public String getHydratedDeployment() { + return hydratedDeployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static HydratedDeploymentName of( + String project, + String location, + String orchestrationCluster, + String deployment, + String hydratedDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .setHydratedDeployment(hydratedDeployment) + .build(); + } + + public static String format( + String project, + String location, + String orchestrationCluster, + String deployment, + String hydratedDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .setHydratedDeployment(hydratedDeployment) + .build() + .toString(); + } + + public static HydratedDeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT.validatedMatch( + formattedString, "HydratedDeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("orchestration_cluster"), + matchMap.get("deployment"), + matchMap.get("hydrated_deployment")); + } + + 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 (HydratedDeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + if (deployment != null) { + fieldMapBuilder.put("deployment", deployment); + } + if (hydratedDeployment != null) { + fieldMapBuilder.put("hydrated_deployment", hydratedDeployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT.instantiate( + "project", + project, + "location", + location, + "orchestration_cluster", + orchestrationCluster, + "deployment", + deployment, + "hydrated_deployment", + hydratedDeployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + HydratedDeploymentName that = ((HydratedDeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster) + && Objects.equals(this.deployment, that.deployment) + && Objects.equals(this.hydratedDeployment, that.hydratedDeployment); + } + 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(orchestrationCluster); + h *= 1000003; + h ^= Objects.hashCode(deployment); + h *= 1000003; + h ^= Objects.hashCode(hydratedDeployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}/hydratedDeployments/{hydrated_deployment}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + private String deployment; + private String hydratedDeployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public String getHydratedDeployment() { + return hydratedDeployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + public Builder setDeployment(String deployment) { + this.deployment = deployment; + return this; + } + + public Builder setHydratedDeployment(String hydratedDeployment) { + this.hydratedDeployment = hydratedDeployment; + return this; + } + + private Builder(HydratedDeploymentName hydratedDeploymentName) { + this.project = hydratedDeploymentName.project; + this.location = hydratedDeploymentName.location; + this.orchestrationCluster = hydratedDeploymentName.orchestrationCluster; + this.deployment = hydratedDeploymentName.deployment; + this.hydratedDeployment = hydratedDeploymentName.hydratedDeployment; + } + + public HydratedDeploymentName build() { + return new HydratedDeploymentName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentOrBuilder.java new file mode 100644 index 000000000000..95f36e08e717 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface HydratedDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.HydratedDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1.HydratedDeployment.State getState(); + + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.File getFiles(int index); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadCluster. + */ + java.lang.String getWorkloadCluster(); + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadCluster. + */ + com.google.protobuf.ByteString getWorkloadClusterBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatus.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatus.java new file mode 100644 index 000000000000..efd1f1d59f37 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatus.java @@ -0,0 +1,915 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Hydration status.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.HydrationStatus} + */ +public final class HydrationStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.HydrationStatus) + HydrationStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use HydrationStatus.newBuilder() to construct. + private HydrationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HydrationStatus() { + status_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HydrationStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydrationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydrationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.HydrationStatus.class, + com.google.cloud.telcoautomation.v1.HydrationStatus.Builder.class); + } + + public static final int SITE_VERSION_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1.SiteVersion siteVersion_; + /** + * + * + *
+   * Output only. SiteVersion Hydration is targeting.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the siteVersion field is set. + */ + @java.lang.Override + public boolean hasSiteVersion() { + return siteVersion_ != null; + } + /** + * + * + *
+   * Output only. SiteVersion Hydration is targeting.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The siteVersion. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersion getSiteVersion() { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } + /** + * + * + *
+   * Output only. SiteVersion Hydration is targeting.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder getSiteVersionOrBuilder() { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } + + public static final int STATUS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = 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 (siteVersion_ != null) { + output.writeMessage(1, getSiteVersion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (siteVersion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSiteVersion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + } + 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.telcoautomation.v1.HydrationStatus)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.HydrationStatus other = + (com.google.cloud.telcoautomation.v1.HydrationStatus) obj; + + if (hasSiteVersion() != other.hasSiteVersion()) return false; + if (hasSiteVersion()) { + if (!getSiteVersion().equals(other.getSiteVersion())) return false; + } + if (!getStatus().equals(other.getStatus())) 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 (hasSiteVersion()) { + hash = (37 * hash) + SITE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSiteVersion().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus 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.telcoautomation.v1.HydrationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus 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.telcoautomation.v1.HydrationStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus 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.telcoautomation.v1.HydrationStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus 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.telcoautomation.v1.HydrationStatus 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; + } + /** + * + * + *
+   * Hydration status.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.HydrationStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.HydrationStatus) + com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydrationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydrationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.HydrationStatus.class, + com.google.cloud.telcoautomation.v1.HydrationStatus.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.HydrationStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + siteVersion_ = null; + if (siteVersionBuilder_ != null) { + siteVersionBuilder_.dispose(); + siteVersionBuilder_ = null; + } + status_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_HydrationStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydrationStatus getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydrationStatus build() { + com.google.cloud.telcoautomation.v1.HydrationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydrationStatus buildPartial() { + com.google.cloud.telcoautomation.v1.HydrationStatus result = + new com.google.cloud.telcoautomation.v1.HydrationStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.HydrationStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.siteVersion_ = + siteVersionBuilder_ == null ? siteVersion_ : siteVersionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + } + + @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.telcoautomation.v1.HydrationStatus) { + return mergeFrom((com.google.cloud.telcoautomation.v1.HydrationStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.HydrationStatus other) { + if (other == com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance()) + return this; + if (other.hasSiteVersion()) { + mergeSiteVersion(other.getSiteVersion()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + 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: + { + input.readMessage(getSiteVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + status_ = 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 com.google.cloud.telcoautomation.v1.SiteVersion siteVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.SiteVersion, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder, + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder> + siteVersionBuilder_; + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the siteVersion field is set. + */ + public boolean hasSiteVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The siteVersion. + */ + public com.google.cloud.telcoautomation.v1.SiteVersion getSiteVersion() { + if (siteVersionBuilder_ == null) { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } else { + return siteVersionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSiteVersion(com.google.cloud.telcoautomation.v1.SiteVersion value) { + if (siteVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + siteVersion_ = value; + } else { + siteVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSiteVersion( + com.google.cloud.telcoautomation.v1.SiteVersion.Builder builderForValue) { + if (siteVersionBuilder_ == null) { + siteVersion_ = builderForValue.build(); + } else { + siteVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSiteVersion(com.google.cloud.telcoautomation.v1.SiteVersion value) { + if (siteVersionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && siteVersion_ != null + && siteVersion_ + != com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance()) { + getSiteVersionBuilder().mergeFrom(value); + } else { + siteVersion_ = value; + } + } else { + siteVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSiteVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + siteVersion_ = null; + if (siteVersionBuilder_ != null) { + siteVersionBuilder_.dispose(); + siteVersionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.SiteVersion.Builder getSiteVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSiteVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder getSiteVersionOrBuilder() { + if (siteVersionBuilder_ != null) { + return siteVersionBuilder_.getMessageOrBuilder(); + } else { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } + } + /** + * + * + *
+     * Output only. SiteVersion Hydration is targeting.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.SiteVersion, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder, + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder> + getSiteVersionFieldBuilder() { + if (siteVersionBuilder_ == null) { + siteVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.SiteVersion, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder, + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder>( + getSiteVersion(), getParentForChildren(), isClean()); + siteVersion_ = null; + } + return siteVersionBuilder_; + } + + private java.lang.Object status_ = ""; + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = 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.telcoautomation.v1.HydrationStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.HydrationStatus) + private static final com.google.cloud.telcoautomation.v1.HydrationStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.HydrationStatus(); + } + + public static com.google.cloud.telcoautomation.v1.HydrationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HydrationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.HydrationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatusOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatusOrBuilder.java new file mode 100644 index 000000000000..2fc8dfb559dd --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydrationStatusOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface HydrationStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.HydrationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. SiteVersion Hydration is targeting.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the siteVersion field is set. + */ + boolean hasSiteVersion(); + /** + * + * + *
+   * Output only. SiteVersion Hydration is targeting.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The siteVersion. + */ + com.google.cloud.telcoautomation.v1.SiteVersion getSiteVersion(); + /** + * + * + *
+   * Output only. SiteVersion Hydration is targeting.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder getSiteVersionOrBuilder(); + + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + java.lang.String getStatus(); + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequest.java new file mode 100644 index 000000000000..93436d0c4fe9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequest.java @@ -0,0 +1,930 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ListBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest} + */ +public final class ListBlueprintRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) + ListBlueprintRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintRevisionsRequest.newBuilder() to construct. + private ListBlueprintRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintRevisionsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of revisions to return per page.
+   * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.telcoautomation.v1.ListBlueprintRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest other = + (com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest 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.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest 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.telcoautomation.v1.ListBlueprintRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest + 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.telcoautomation.v1.ListBlueprintRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest 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.telcoautomation.v1.ListBlueprintRevisionsRequest 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 object for `ListBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest build() { + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest result = + new com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1.ListBlueprintRevisionsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 10: + { + name_ = 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 + default: + { + 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. The name of the blueprint to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to list revisions for.
+     * 
+ * + * + * 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. The name of the blueprint to list revisions for.
+     * 
+ * + * + * 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. The name of the blueprint to list revisions for.
+     * 
+ * + * + * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of revisions to return per page.
+     * 
+ * + * 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 revisions to return per page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The page token, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.ListBlueprintRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListBlueprintRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..1f2a48ce388d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListBlueprintRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The maximum number of revisions to return per page.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The page token, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponse.java new file mode 100644 index 000000000000..f1aad4a1ef22 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `ListBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse} + */ +public final class ListBlueprintRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse) + ListBlueprintRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintRevisionsResponse.newBuilder() to construct. + private ListBlueprintRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintRevisionsResponse() { + blueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse.Builder.class); + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List blueprints_; + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder(int index) { + return blueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.ListBlueprintRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse other = + (com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse) obj; + + if (!getBlueprintsList().equals(other.getBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse 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.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse 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.telcoautomation.v1.ListBlueprintRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + 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.telcoautomation.v1.ListBlueprintRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse 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.telcoautomation.v1.ListBlueprintRevisionsResponse 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 object for `ListBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse) + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + } else { + blueprints_ = null; + blueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse build() { + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse result = + new com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse result) { + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse 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.telcoautomation.v1.ListBlueprintRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + .getDefaultInstance()) return this; + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlueprintsFieldBuilder() + : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.Blueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1.Blueprint.parser(), extensionRegistry); + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(m); + } else { + blueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List blueprints_ = + java.util.Collections.emptyList(); + + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = + new java.util.ArrayList(blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + blueprintsBuilder_; + + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder setBlueprints(int index, com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(int index, com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder getBlueprintsBuilder(int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder addBlueprintsBuilder(int index) { + return getBlueprintsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder>( + blueprints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.ListBlueprintRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListBlueprintRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..dad0ff9f950f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListBlueprintRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + java.util.List getBlueprintsList(); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + int getBlueprintsCount(); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequest.java new file mode 100644 index 000000000000..0f2b0e6222d2 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequest.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ListBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintsRequest} + */ +public final class ListBlueprintsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListBlueprintsRequest) + ListBlueprintsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintsRequest.newBuilder() to construct. + private ListBlueprintsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of blueprints to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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_); + } + 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.telcoautomation.v1.ListBlueprintsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest other = + (com.google.cloud.telcoautomation.v1.ListBlueprintsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest 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.telcoautomation.v1.ListBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest 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.telcoautomation.v1.ListBlueprintsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest 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.telcoautomation.v1.ListBlueprintsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest 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.telcoautomation.v1.ListBlueprintsRequest 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 object for `ListBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListBlueprintsRequest) + com.google.cloud.telcoautomation.v1.ListBlueprintsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintsRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintsRequest build() { + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListBlueprintsRequest result = + new com.google.cloud.telcoautomation.v1.ListBlueprintsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ListBlueprintsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1.ListBlueprintsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListBlueprintsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ListBlueprintsRequest other) { + if (other == com.google.cloud.telcoautomation.v1.ListBlueprintsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 filter_ = ""; + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of blueprints to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1.ListBlueprintsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListBlueprintsRequest) + private static final com.google.cloud.telcoautomation.v1.ListBlueprintsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListBlueprintsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListBlueprintsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequestOrBuilder.java new file mode 100644 index 000000000000..88ec1b1af51c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListBlueprintsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListBlueprintsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of blueprints to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponse.java new file mode 100644 index 000000000000..2ddbfd105b79 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `ListBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintsResponse} + */ +public final class ListBlueprintsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListBlueprintsResponse) + ListBlueprintsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintsResponse.newBuilder() to construct. + private ListBlueprintsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintsResponse() { + blueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.Builder.class); + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List blueprints_; + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder(int index) { + return blueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.ListBlueprintsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse other = + (com.google.cloud.telcoautomation.v1.ListBlueprintsResponse) obj; + + if (!getBlueprintsList().equals(other.getBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse 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.telcoautomation.v1.ListBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse 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.telcoautomation.v1.ListBlueprintsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse 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.telcoautomation.v1.ListBlueprintsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse 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.telcoautomation.v1.ListBlueprintsResponse 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 object for `ListBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListBlueprintsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListBlueprintsResponse) + com.google.cloud.telcoautomation.v1.ListBlueprintsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + } else { + blueprints_ = null; + blueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintsResponse getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintsResponse build() { + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListBlueprintsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse result = + new com.google.cloud.telcoautomation.v1.ListBlueprintsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListBlueprintsResponse result) { + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ListBlueprintsResponse 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.telcoautomation.v1.ListBlueprintsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListBlueprintsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ListBlueprintsResponse other) { + if (other == com.google.cloud.telcoautomation.v1.ListBlueprintsResponse.getDefaultInstance()) + return this; + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlueprintsFieldBuilder() + : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.Blueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1.Blueprint.parser(), extensionRegistry); + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(m); + } else { + blueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List blueprints_ = + java.util.Collections.emptyList(); + + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = + new java.util.ArrayList(blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + blueprintsBuilder_; + + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder setBlueprints(int index, com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(int index, com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder getBlueprintsBuilder(int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder addBlueprintsBuilder(int index) { + return getBlueprintsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder>( + blueprints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.ListBlueprintsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListBlueprintsResponse) + private static final com.google.cloud.telcoautomation.v1.ListBlueprintsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListBlueprintsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListBlueprintsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListBlueprintsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponseOrBuilder.java new file mode 100644 index 000000000000..88e7e2faad90 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListBlueprintsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListBlueprintsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListBlueprintsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + java.util.List getBlueprintsList(); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + int getBlueprintsCount(); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequest.java new file mode 100644 index 000000000000..1038cb6e77bf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequest.java @@ -0,0 +1,933 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request for listing all revisions of a deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest} + */ +public final class ListDeploymentRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) + ListDeploymentRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentRevisionsRequest.newBuilder() to construct. + private ListDeploymentRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentRevisionsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of revisions to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.telcoautomation.v1.ListDeploymentRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest other = + (com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest 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.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest 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.telcoautomation.v1.ListDeploymentRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + 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.telcoautomation.v1.ListDeploymentRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest 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.telcoautomation.v1.ListDeploymentRevisionsRequest 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 listing all revisions of a deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest build() { + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest result = + new com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1.ListDeploymentRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 10: + { + name_ = 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 + default: + { + 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. The name of the deployment to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to list revisions for.
+     * 
+ * + * + * 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. The name of the deployment to list revisions for.
+     * 
+ * + * + * 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. The name of the deployment to list revisions for.
+     * 
+ * + * + * 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 int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.telcoautomation.v1.ListDeploymentRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListDeploymentRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..3b134c56631e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListDeploymentRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The maximum number of revisions to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponse.java new file mode 100644 index 000000000000..a8373ec46414 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponse.java @@ -0,0 +1,1141 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * List of deployment revisions for a given deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse} + */ +public final class ListDeploymentRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse) + ListDeploymentRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentRevisionsResponse.newBuilder() to construct. + private ListDeploymentRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentRevisionsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.ListDeploymentRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse other = + (com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse 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.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse 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.telcoautomation.v1.ListDeploymentRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + 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.telcoautomation.v1.ListDeploymentRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse 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.telcoautomation.v1.ListDeploymentRevisionsResponse 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; + } + /** + * + * + *
+   * List of deployment revisions for a given deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse) + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse build() { + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse result = + new com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse 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.telcoautomation.v1.ListDeploymentRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + .getDefaultInstance()) return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.Deployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1.Deployment.parser(), extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList(deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder setDeployments(int index, com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments(int index, com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder getDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder addDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.ListDeploymentRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListDeploymentRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..96b2aaaa1043 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListDeploymentRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequest.java new file mode 100644 index 000000000000..f5757dfa7076 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequest.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ListDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentsRequest} + */ +public final class ListDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListDeploymentsRequest) + ListDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentsRequest.newBuilder() to construct. + private ListDeploymentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of deployments to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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_); + } + 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.telcoautomation.v1.ListDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest other = + (com.google.cloud.telcoautomation.v1.ListDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest 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.telcoautomation.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest 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.telcoautomation.v1.ListDeploymentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest 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.telcoautomation.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest 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.telcoautomation.v1.ListDeploymentsRequest 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 object for `ListDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListDeploymentsRequest) + com.google.cloud.telcoautomation.v1.ListDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentsRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentsRequest build() { + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListDeploymentsRequest result = + new com.google.cloud.telcoautomation.v1.ListDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ListDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1.ListDeploymentsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ListDeploymentsRequest other) { + if (other == com.google.cloud.telcoautomation.v1.ListDeploymentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 filter_ = ""; + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of deployments to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of deployments to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of deployments to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1.ListDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListDeploymentsRequest) + private static final com.google.cloud.telcoautomation.v1.ListDeploymentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListDeploymentsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListDeploymentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..2ca47310872a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of deployments to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponse.java new file mode 100644 index 000000000000..5c9f2d6ba196 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponse.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `ListDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentsResponse} + */ +public final class ListDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListDeploymentsResponse) + ListDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentsResponse.newBuilder() to construct. + private ListDeploymentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.ListDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse other = + (com.google.cloud.telcoautomation.v1.ListDeploymentsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse 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.telcoautomation.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse 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.telcoautomation.v1.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse 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.telcoautomation.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse 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.telcoautomation.v1.ListDeploymentsResponse 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 object for `ListDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListDeploymentsResponse) + com.google.cloud.telcoautomation.v1.ListDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse build() { + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListDeploymentsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse result = + new com.google.cloud.telcoautomation.v1.ListDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListDeploymentsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ListDeploymentsResponse 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.telcoautomation.v1.ListDeploymentsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ListDeploymentsResponse other) { + if (other == com.google.cloud.telcoautomation.v1.ListDeploymentsResponse.getDefaultInstance()) + return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.Deployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1.Deployment.parser(), extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList(deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder setDeployments(int index, com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments(int index, com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder getDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder addDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.ListDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListDeploymentsResponse) + private static final com.google.cloud.telcoautomation.v1.ListDeploymentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListDeploymentsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListDeploymentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListDeploymentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..ee802c5c9b53 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListDeploymentsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequest.java new file mode 100644 index 000000000000..92083367a79b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequest.java @@ -0,0 +1,1282 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for requesting list of EdgeSlms
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListEdgeSlmsRequest} + */ +public final class ListEdgeSlmsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) + ListEdgeSlmsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEdgeSlmsRequest.newBuilder() to construct. + private ListEdgeSlmsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEdgeSlmsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEdgeSlmsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.class, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * 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; + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Filtering results
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Filtering results
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * 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.telcoautomation.v1.ListEdgeSlmsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest other = + (com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) 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.telcoautomation.v1.ListEdgeSlmsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest 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.telcoautomation.v1.ListEdgeSlmsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest 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.telcoautomation.v1.ListEdgeSlmsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest 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.telcoautomation.v1.ListEdgeSlmsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest 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.telcoautomation.v1.ListEdgeSlmsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for requesting list of EdgeSlms
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListEdgeSlmsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.class, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest build() { + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest result = + new com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest 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.telcoautomation.v1.ListEdgeSlmsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest other) { + if (other == com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest.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. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * 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. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * 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. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * 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_; + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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.telcoautomation.v1.ListEdgeSlmsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) + private static final com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEdgeSlmsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListEdgeSlmsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequestOrBuilder.java new file mode 100644 index 000000000000..14cbc4954d77 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListEdgeSlmsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListEdgeSlmsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filtering results
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponse.java new file mode 100644 index 000000000000..89a513357b33 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponse.java @@ -0,0 +1,1396 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for response to listing EdgeSlms.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListEdgeSlmsResponse} + */ +public final class ListEdgeSlmsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListEdgeSlmsResponse) + ListEdgeSlmsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEdgeSlmsResponse.newBuilder() to construct. + private ListEdgeSlmsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEdgeSlmsResponse() { + edgeSlms_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEdgeSlmsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.class, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.Builder.class); + } + + public static final int EDGE_SLMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List edgeSlms_; + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public java.util.List getEdgeSlmsList() { + return edgeSlms_; + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public java.util.List + getEdgeSlmsOrBuilderList() { + return edgeSlms_; + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public int getEdgeSlmsCount() { + return edgeSlms_.size(); + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlms(int index) { + return edgeSlms_.get(index); + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder getEdgeSlmsOrBuilder(int index) { + return edgeSlms_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * 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 < edgeSlms_.size(); i++) { + output.writeMessage(1, edgeSlms_.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 < edgeSlms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, edgeSlms_.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.telcoautomation.v1.ListEdgeSlmsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse other = + (com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse) obj; + + if (!getEdgeSlmsList().equals(other.getEdgeSlmsList())) 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 (getEdgeSlmsCount() > 0) { + hash = (37 * hash) + EDGE_SLMS_FIELD_NUMBER; + hash = (53 * hash) + getEdgeSlmsList().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.telcoautomation.v1.ListEdgeSlmsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse 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.telcoautomation.v1.ListEdgeSlmsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse 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.telcoautomation.v1.ListEdgeSlmsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse 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.telcoautomation.v1.ListEdgeSlmsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse 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.telcoautomation.v1.ListEdgeSlmsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for response to listing EdgeSlms.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListEdgeSlmsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListEdgeSlmsResponse) + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.class, + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (edgeSlmsBuilder_ == null) { + edgeSlms_ = java.util.Collections.emptyList(); + } else { + edgeSlms_ = null; + edgeSlmsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse build() { + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse result = + new com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse result) { + if (edgeSlmsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + edgeSlms_ = java.util.Collections.unmodifiableList(edgeSlms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.edgeSlms_ = edgeSlms_; + } else { + result.edgeSlms_ = edgeSlmsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.telcoautomation.v1.ListEdgeSlmsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse other) { + if (other == com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse.getDefaultInstance()) + return this; + if (edgeSlmsBuilder_ == null) { + if (!other.edgeSlms_.isEmpty()) { + if (edgeSlms_.isEmpty()) { + edgeSlms_ = other.edgeSlms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEdgeSlmsIsMutable(); + edgeSlms_.addAll(other.edgeSlms_); + } + onChanged(); + } + } else { + if (!other.edgeSlms_.isEmpty()) { + if (edgeSlmsBuilder_.isEmpty()) { + edgeSlmsBuilder_.dispose(); + edgeSlmsBuilder_ = null; + edgeSlms_ = other.edgeSlms_; + bitField0_ = (bitField0_ & ~0x00000001); + edgeSlmsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEdgeSlmsFieldBuilder() + : null; + } else { + edgeSlmsBuilder_.addAllMessages(other.edgeSlms_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + 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.telcoautomation.v1.EdgeSlm m = + input.readMessage( + com.google.cloud.telcoautomation.v1.EdgeSlm.parser(), extensionRegistry); + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(m); + } else { + edgeSlmsBuilder_.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 edgeSlms_ = + java.util.Collections.emptyList(); + + private void ensureEdgeSlmsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + edgeSlms_ = new java.util.ArrayList(edgeSlms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.EdgeSlm, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder> + edgeSlmsBuilder_; + + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public java.util.List getEdgeSlmsList() { + if (edgeSlmsBuilder_ == null) { + return java.util.Collections.unmodifiableList(edgeSlms_); + } else { + return edgeSlmsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public int getEdgeSlmsCount() { + if (edgeSlmsBuilder_ == null) { + return edgeSlms_.size(); + } else { + return edgeSlmsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlms(int index) { + if (edgeSlmsBuilder_ == null) { + return edgeSlms_.get(index); + } else { + return edgeSlmsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder setEdgeSlms(int index, com.google.cloud.telcoautomation.v1.EdgeSlm value) { + if (edgeSlmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeSlmsIsMutable(); + edgeSlms_.set(index, value); + onChanged(); + } else { + edgeSlmsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder setEdgeSlms( + int index, com.google.cloud.telcoautomation.v1.EdgeSlm.Builder builderForValue) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.set(index, builderForValue.build()); + onChanged(); + } else { + edgeSlmsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms(com.google.cloud.telcoautomation.v1.EdgeSlm value) { + if (edgeSlmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(value); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms(int index, com.google.cloud.telcoautomation.v1.EdgeSlm value) { + if (edgeSlmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(index, value); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms( + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder builderForValue) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(builderForValue.build()); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms( + int index, com.google.cloud.telcoautomation.v1.EdgeSlm.Builder builderForValue) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(index, builderForValue.build()); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder addAllEdgeSlms( + java.lang.Iterable values) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, edgeSlms_); + onChanged(); + } else { + edgeSlmsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder clearEdgeSlms() { + if (edgeSlmsBuilder_ == null) { + edgeSlms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + edgeSlmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public Builder removeEdgeSlms(int index) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.remove(index); + onChanged(); + } else { + edgeSlmsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1.EdgeSlm.Builder getEdgeSlmsBuilder(int index) { + return getEdgeSlmsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder getEdgeSlmsOrBuilder(int index) { + if (edgeSlmsBuilder_ == null) { + return edgeSlms_.get(index); + } else { + return edgeSlmsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public java.util.List + getEdgeSlmsOrBuilderList() { + if (edgeSlmsBuilder_ != null) { + return edgeSlmsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(edgeSlms_); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1.EdgeSlm.Builder addEdgeSlmsBuilder() { + return getEdgeSlmsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance()); + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1.EdgeSlm.Builder addEdgeSlmsBuilder(int index) { + return getEdgeSlmsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.EdgeSlm.getDefaultInstance()); + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + public java.util.List + getEdgeSlmsBuilderList() { + return getEdgeSlmsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.EdgeSlm, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder> + getEdgeSlmsFieldBuilder() { + if (edgeSlmsBuilder_ == null) { + edgeSlmsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.EdgeSlm, + com.google.cloud.telcoautomation.v1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder>( + edgeSlms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + edgeSlms_ = null; + } + return edgeSlmsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + 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() { + unreachable_.makeImmutable(); + 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); + } + /** + * + * + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + 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); + 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.telcoautomation.v1.ListEdgeSlmsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListEdgeSlmsResponse) + private static final com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEdgeSlmsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListEdgeSlmsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponseOrBuilder.java new file mode 100644 index 000000000000..ae086dccc3ed --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListEdgeSlmsResponseOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListEdgeSlmsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListEdgeSlmsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + java.util.List getEdgeSlmsList(); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + com.google.cloud.telcoautomation.v1.EdgeSlm getEdgeSlms(int index); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + int getEdgeSlmsCount(); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + java.util.List + getEdgeSlmsOrBuilderList(); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.EdgeSlm edge_slms = 1; + */ + com.google.cloud.telcoautomation.v1.EdgeSlmOrBuilder getEdgeSlmsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequest.java new file mode 100644 index 000000000000..69198b7bdfd0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequest.java @@ -0,0 +1,945 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ListHydratedDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest} + */ +public final class ListHydratedDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) + ListHydratedDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHydratedDeploymentsRequest.newBuilder() to construct. + private ListHydratedDeploymentsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHydratedDeploymentsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHydratedDeploymentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The deployment managing the hydrated deployments.
+   * 
+ * + * + * 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 deployment managing the hydrated deployments.
+   * 
+ * + * + * 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; + /** + * + * + *
+   * Optional. The maximum number of hydrated deployments to return. The service
+   * may return fewer than this value. If unspecified, at most 50 hydrated
+   * deployments will be returned. The maximum value is 1000. Values above 1000
+   * will be set to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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_); + } + 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.telcoautomation.v1.ListHydratedDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest other = + (com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest 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.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest 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.telcoautomation.v1.ListHydratedDeploymentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + 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.telcoautomation.v1.ListHydratedDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest 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.telcoautomation.v1.ListHydratedDeploymentsRequest 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 object for `ListHydratedDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest build() { + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest result = + new com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest 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_; + } + } + + @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.telcoautomation.v1.ListHydratedDeploymentsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + .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(); + } + 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 + default: + { + 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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_; + /** + * + * + *
+     * Optional. The maximum number of hydrated deployments to return. The service
+     * may return fewer than this value. If unspecified, at most 50 hydrated
+     * deployments will be returned. The maximum value is 1000. Values above 1000
+     * will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of hydrated deployments to return. The service
+     * may return fewer than this value. If unspecified, at most 50 hydrated
+     * deployments will be returned. The maximum value is 1000. Values above 1000
+     * will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of hydrated deployments to return. The service
+     * may return fewer than this value. If unspecified, at most 50 hydrated
+     * deployments will be returned. The maximum value is 1000. Values above 1000
+     * will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.telcoautomation.v1.ListHydratedDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) + private static final com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHydratedDeploymentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListHydratedDeploymentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..4cb71e544256 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListHydratedDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The deployment managing the hydrated deployments.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The deployment managing the hydrated deployments.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of hydrated deployments to return. The service
+   * may return fewer than this value. If unspecified, at most 50 hydrated
+   * deployments will be returned. The maximum value is 1000. Values above 1000
+   * will be set to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponse.java new file mode 100644 index 000000000000..6d85f96e1d26 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponse.java @@ -0,0 +1,1182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `ListHydratedDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse} + */ +public final class ListHydratedDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse) + ListHydratedDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHydratedDeploymentsResponse.newBuilder() to construct. + private ListHydratedDeploymentsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHydratedDeploymentsResponse() { + hydratedDeployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHydratedDeploymentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse.Builder.class); + } + + public static final int HYDRATED_DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + hydratedDeployments_; + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getHydratedDeploymentsList() { + return hydratedDeployments_; + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getHydratedDeploymentsOrBuilderList() { + return hydratedDeployments_; + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public int getHydratedDeploymentsCount() { + return hydratedDeployments_.size(); + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployments(int index) { + return hydratedDeployments_.get(index); + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder + getHydratedDeploymentsOrBuilder(int index) { + return hydratedDeployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hydratedDeployments_.size(); i++) { + output.writeMessage(1, hydratedDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < hydratedDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, hydratedDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.ListHydratedDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse other = + (com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse) obj; + + if (!getHydratedDeploymentsList().equals(other.getHydratedDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getHydratedDeploymentsCount() > 0) { + hash = (37 * hash) + HYDRATED_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getHydratedDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse 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.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse 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.telcoautomation.v1.ListHydratedDeploymentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + 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.telcoautomation.v1.ListHydratedDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse 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.telcoautomation.v1.ListHydratedDeploymentsResponse 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 object for `ListHydratedDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse) + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (hydratedDeploymentsBuilder_ == null) { + hydratedDeployments_ = java.util.Collections.emptyList(); + } else { + hydratedDeployments_ = null; + hydratedDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse build() { + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse result = + new com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse result) { + if (hydratedDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + hydratedDeployments_ = java.util.Collections.unmodifiableList(hydratedDeployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hydratedDeployments_ = hydratedDeployments_; + } else { + result.hydratedDeployments_ = hydratedDeploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse 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.telcoautomation.v1.ListHydratedDeploymentsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + .getDefaultInstance()) return this; + if (hydratedDeploymentsBuilder_ == null) { + if (!other.hydratedDeployments_.isEmpty()) { + if (hydratedDeployments_.isEmpty()) { + hydratedDeployments_ = other.hydratedDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.addAll(other.hydratedDeployments_); + } + onChanged(); + } + } else { + if (!other.hydratedDeployments_.isEmpty()) { + if (hydratedDeploymentsBuilder_.isEmpty()) { + hydratedDeploymentsBuilder_.dispose(); + hydratedDeploymentsBuilder_ = null; + hydratedDeployments_ = other.hydratedDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + hydratedDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHydratedDeploymentsFieldBuilder() + : null; + } else { + hydratedDeploymentsBuilder_.addAllMessages(other.hydratedDeployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.HydratedDeployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1.HydratedDeployment.parser(), + extensionRegistry); + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(m); + } else { + hydratedDeploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + hydratedDeployments_ = java.util.Collections.emptyList(); + + private void ensureHydratedDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hydratedDeployments_ = + new java.util.ArrayList( + hydratedDeployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydratedDeployment, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder> + hydratedDeploymentsBuilder_; + + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public java.util.List + getHydratedDeploymentsList() { + if (hydratedDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(hydratedDeployments_); + } else { + return hydratedDeploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public int getHydratedDeploymentsCount() { + if (hydratedDeploymentsBuilder_ == null) { + return hydratedDeployments_.size(); + } else { + return hydratedDeploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployments( + int index) { + if (hydratedDeploymentsBuilder_ == null) { + return hydratedDeployments_.get(index); + } else { + return hydratedDeploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder setHydratedDeployments( + int index, com.google.cloud.telcoautomation.v1.HydratedDeployment value) { + if (hydratedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.set(index, value); + onChanged(); + } else { + hydratedDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder setHydratedDeployments( + int index, com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + hydratedDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + com.google.cloud.telcoautomation.v1.HydratedDeployment value) { + if (hydratedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(value); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + int index, com.google.cloud.telcoautomation.v1.HydratedDeployment value) { + if (hydratedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(index, value); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(builderForValue.build()); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + int index, com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addAllHydratedDeployments( + java.lang.Iterable + values) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hydratedDeployments_); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder clearHydratedDeployments() { + if (hydratedDeploymentsBuilder_ == null) { + hydratedDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hydratedDeploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder removeHydratedDeployments(int index) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.remove(index); + onChanged(); + } else { + hydratedDeploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder + getHydratedDeploymentsBuilder(int index) { + return getHydratedDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder + getHydratedDeploymentsOrBuilder(int index) { + if (hydratedDeploymentsBuilder_ == null) { + return hydratedDeployments_.get(index); + } else { + return hydratedDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public java.util.List + getHydratedDeploymentsOrBuilderList() { + if (hydratedDeploymentsBuilder_ != null) { + return hydratedDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hydratedDeployments_); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder + addHydratedDeploymentsBuilder() { + return getHydratedDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder + addHydratedDeploymentsBuilder(int index) { + return getHydratedDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + public java.util.List + getHydratedDeploymentsBuilderList() { + return getHydratedDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydratedDeployment, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder> + getHydratedDeploymentsFieldBuilder() { + if (hydratedDeploymentsBuilder_ == null) { + hydratedDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydratedDeployment, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder>( + hydratedDeployments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + hydratedDeployments_ = null; + } + return hydratedDeploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.ListHydratedDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse) + private static final com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHydratedDeploymentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListHydratedDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..6a260ca70982 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListHydratedDeploymentsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListHydratedDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + java.util.List + getHydratedDeploymentsList(); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployments(int index); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + int getHydratedDeploymentsCount(); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + java.util.List + getHydratedDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployments = 1; + * + */ + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder getHydratedDeploymentsOrBuilder( + int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequest.java new file mode 100644 index 000000000000..6c0c0b4c12c5 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequest.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for requesting list of OrchestrationClusters.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest} + */ +public final class ListOrchestrationClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) + ListOrchestrationClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOrchestrationClustersRequest.newBuilder() to construct. + private ListOrchestrationClustersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrchestrationClustersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrchestrationClustersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest.class, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * 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; + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * 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.telcoautomation.v1.ListOrchestrationClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest other = + (com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) 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.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest 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.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest 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.telcoautomation.v1.ListOrchestrationClustersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + 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.telcoautomation.v1.ListOrchestrationClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest 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.telcoautomation.v1.ListOrchestrationClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for requesting list of OrchestrationClusters.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest.class, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest build() { + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest result = + new com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest 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.telcoautomation.v1.ListOrchestrationClustersRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + .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. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * 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. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * 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. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * 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_; + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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.telcoautomation.v1.ListOrchestrationClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) + private static final com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrchestrationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListOrchestrationClustersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequestOrBuilder.java new file mode 100644 index 000000000000..536092f93b89 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListOrchestrationClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponse.java new file mode 100644 index 000000000000..ec19a9a8cf7a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponse.java @@ -0,0 +1,1481 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Message for response to listing OrchestrationClusters.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse} + */ +public final class ListOrchestrationClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse) + ListOrchestrationClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOrchestrationClustersResponse.newBuilder() to construct. + private ListOrchestrationClustersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrchestrationClustersResponse() { + orchestrationClusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrchestrationClustersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse.class, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse.Builder.class); + } + + public static final int ORCHESTRATION_CLUSTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + orchestrationClusters_; + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public java.util.List + getOrchestrationClustersList() { + return orchestrationClusters_; + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public java.util.List + getOrchestrationClustersOrBuilderList() { + return orchestrationClusters_; + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public int getOrchestrationClustersCount() { + return orchestrationClusters_.size(); + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationClusters( + int index) { + return orchestrationClusters_.get(index); + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder + getOrchestrationClustersOrBuilder(int index) { + return orchestrationClusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * 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 < orchestrationClusters_.size(); i++) { + output.writeMessage(1, orchestrationClusters_.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 < orchestrationClusters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, orchestrationClusters_.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.telcoautomation.v1.ListOrchestrationClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse other = + (com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse) obj; + + if (!getOrchestrationClustersList().equals(other.getOrchestrationClustersList())) 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 (getOrchestrationClustersCount() > 0) { + hash = (37 * hash) + ORCHESTRATION_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationClustersList().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.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse 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.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse 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.telcoautomation.v1.ListOrchestrationClustersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + 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.telcoautomation.v1.ListOrchestrationClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse 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.telcoautomation.v1.ListOrchestrationClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for response to listing OrchestrationClusters.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse) + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse.class, + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (orchestrationClustersBuilder_ == null) { + orchestrationClusters_ = java.util.Collections.emptyList(); + } else { + orchestrationClusters_ = null; + orchestrationClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse build() { + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse result = + new com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse result) { + if (orchestrationClustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + orchestrationClusters_ = java.util.Collections.unmodifiableList(orchestrationClusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.orchestrationClusters_ = orchestrationClusters_; + } else { + result.orchestrationClusters_ = orchestrationClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.telcoautomation.v1.ListOrchestrationClustersResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + .getDefaultInstance()) return this; + if (orchestrationClustersBuilder_ == null) { + if (!other.orchestrationClusters_.isEmpty()) { + if (orchestrationClusters_.isEmpty()) { + orchestrationClusters_ = other.orchestrationClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.addAll(other.orchestrationClusters_); + } + onChanged(); + } + } else { + if (!other.orchestrationClusters_.isEmpty()) { + if (orchestrationClustersBuilder_.isEmpty()) { + orchestrationClustersBuilder_.dispose(); + orchestrationClustersBuilder_ = null; + orchestrationClusters_ = other.orchestrationClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + orchestrationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrchestrationClustersFieldBuilder() + : null; + } else { + orchestrationClustersBuilder_.addAllMessages(other.orchestrationClusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + 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.telcoautomation.v1.OrchestrationCluster m = + input.readMessage( + com.google.cloud.telcoautomation.v1.OrchestrationCluster.parser(), + extensionRegistry); + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(m); + } else { + orchestrationClustersBuilder_.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 + orchestrationClusters_ = java.util.Collections.emptyList(); + + private void ensureOrchestrationClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + orchestrationClusters_ = + new java.util.ArrayList( + orchestrationClusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder> + orchestrationClustersBuilder_; + + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public java.util.List + getOrchestrationClustersList() { + if (orchestrationClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(orchestrationClusters_); + } else { + return orchestrationClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public int getOrchestrationClustersCount() { + if (orchestrationClustersBuilder_ == null) { + return orchestrationClusters_.size(); + } else { + return orchestrationClustersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationClusters( + int index) { + if (orchestrationClustersBuilder_ == null) { + return orchestrationClusters_.get(index); + } else { + return orchestrationClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder setOrchestrationClusters( + int index, com.google.cloud.telcoautomation.v1.OrchestrationCluster value) { + if (orchestrationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.set(index, value); + onChanged(); + } else { + orchestrationClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder setOrchestrationClusters( + int index, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + orchestrationClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + com.google.cloud.telcoautomation.v1.OrchestrationCluster value) { + if (orchestrationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(value); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + int index, com.google.cloud.telcoautomation.v1.OrchestrationCluster value) { + if (orchestrationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(index, value); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(builderForValue.build()); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + int index, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addAllOrchestrationClusters( + java.lang.Iterable + values) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orchestrationClusters_); + onChanged(); + } else { + orchestrationClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder clearOrchestrationClusters() { + if (orchestrationClustersBuilder_ == null) { + orchestrationClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + orchestrationClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder removeOrchestrationClusters(int index) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.remove(index); + onChanged(); + } else { + orchestrationClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder + getOrchestrationClustersBuilder(int index) { + return getOrchestrationClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder + getOrchestrationClustersOrBuilder(int index) { + if (orchestrationClustersBuilder_ == null) { + return orchestrationClusters_.get(index); + } else { + return orchestrationClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder> + getOrchestrationClustersOrBuilderList() { + if (orchestrationClustersBuilder_ != null) { + return orchestrationClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orchestrationClusters_); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder + addOrchestrationClustersBuilder() { + return getOrchestrationClustersFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance()); + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder + addOrchestrationClustersBuilder(int index) { + return getOrchestrationClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance()); + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public java.util.List + getOrchestrationClustersBuilderList() { + return getOrchestrationClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder> + getOrchestrationClustersFieldBuilder() { + if (orchestrationClustersBuilder_ == null) { + orchestrationClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder>( + orchestrationClusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + orchestrationClusters_ = null; + } + return orchestrationClustersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + 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() { + unreachable_.makeImmutable(); + 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); + } + /** + * + * + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + 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); + 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.telcoautomation.v1.ListOrchestrationClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse) + private static final com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrchestrationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListOrchestrationClustersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponseOrBuilder.java new file mode 100644 index 000000000000..d8ca28ada249 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListOrchestrationClustersResponseOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListOrchestrationClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + java.util.List + getOrchestrationClustersList(); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + com.google.cloud.telcoautomation.v1.OrchestrationCluster getOrchestrationClusters(int index); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + int getOrchestrationClustersCount(); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + java.util.List + getOrchestrationClustersOrBuilderList(); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.OrchestrationCluster orchestration_clusters = 1; + * + */ + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder + getOrchestrationClustersOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequest.java new file mode 100644 index 000000000000..1acf8c90d0ba --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequest.java @@ -0,0 +1,939 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ListPublicBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest} + */ +public final class ListPublicBlueprintsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) + ListPublicBlueprintsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPublicBlueprintsRequest.newBuilder() to construct. + private ListPublicBlueprintsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPublicBlueprintsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPublicBlueprintsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_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; + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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_); + } + 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.telcoautomation.v1.ListPublicBlueprintsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest other = + (com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest 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.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest 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.telcoautomation.v1.ListPublicBlueprintsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest 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.telcoautomation.v1.ListPublicBlueprintsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest 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.telcoautomation.v1.ListPublicBlueprintsRequest 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 object for `ListPublicBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest build() { + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest result = + new com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest 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_; + } + } + + @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.telcoautomation.v1.ListPublicBlueprintsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest.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(); + } + 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 + default: + { + 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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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_; + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.telcoautomation.v1.ListPublicBlueprintsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) + private static final com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublicBlueprintsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListPublicBlueprintsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequestOrBuilder.java new file mode 100644 index 000000000000..b719d25e46eb --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListPublicBlueprintsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponse.java new file mode 100644 index 000000000000..0c9b5fc2b9b1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponse.java @@ -0,0 +1,1149 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `ListPublicBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse} + */ +public final class ListPublicBlueprintsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse) + ListPublicBlueprintsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPublicBlueprintsResponse.newBuilder() to construct. + private ListPublicBlueprintsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPublicBlueprintsResponse() { + publicBlueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPublicBlueprintsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.Builder.class); + } + + public static final int PUBLIC_BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List publicBlueprints_; + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + @java.lang.Override + public java.util.List + getPublicBlueprintsList() { + return publicBlueprints_; + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + @java.lang.Override + public java.util.List + getPublicBlueprintsOrBuilderList() { + return publicBlueprints_; + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + @java.lang.Override + public int getPublicBlueprintsCount() { + return publicBlueprints_.size(); + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.PublicBlueprint getPublicBlueprints(int index) { + return publicBlueprints_.get(index); + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder getPublicBlueprintsOrBuilder( + int index) { + return publicBlueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < publicBlueprints_.size(); i++) { + output.writeMessage(1, publicBlueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < publicBlueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, publicBlueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.ListPublicBlueprintsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse other = + (com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse) obj; + + if (!getPublicBlueprintsList().equals(other.getPublicBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getPublicBlueprintsCount() > 0) { + hash = (37 * hash) + PUBLIC_BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getPublicBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse 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.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse 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.telcoautomation.v1.ListPublicBlueprintsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse 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.telcoautomation.v1.ListPublicBlueprintsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse 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.telcoautomation.v1.ListPublicBlueprintsResponse 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 object for `ListPublicBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse) + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (publicBlueprintsBuilder_ == null) { + publicBlueprints_ = java.util.Collections.emptyList(); + } else { + publicBlueprints_ = null; + publicBlueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse build() { + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse result = + new com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse result) { + if (publicBlueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + publicBlueprints_ = java.util.Collections.unmodifiableList(publicBlueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.publicBlueprints_ = publicBlueprints_; + } else { + result.publicBlueprints_ = publicBlueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse 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.telcoautomation.v1.ListPublicBlueprintsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse.getDefaultInstance()) + return this; + if (publicBlueprintsBuilder_ == null) { + if (!other.publicBlueprints_.isEmpty()) { + if (publicBlueprints_.isEmpty()) { + publicBlueprints_ = other.publicBlueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.addAll(other.publicBlueprints_); + } + onChanged(); + } + } else { + if (!other.publicBlueprints_.isEmpty()) { + if (publicBlueprintsBuilder_.isEmpty()) { + publicBlueprintsBuilder_.dispose(); + publicBlueprintsBuilder_ = null; + publicBlueprints_ = other.publicBlueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + publicBlueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPublicBlueprintsFieldBuilder() + : null; + } else { + publicBlueprintsBuilder_.addAllMessages(other.publicBlueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.PublicBlueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1.PublicBlueprint.parser(), + extensionRegistry); + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(m); + } else { + publicBlueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List publicBlueprints_ = + java.util.Collections.emptyList(); + + private void ensurePublicBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + publicBlueprints_ = + new java.util.ArrayList( + publicBlueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.PublicBlueprint, + com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder, + com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder> + publicBlueprintsBuilder_; + + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public java.util.List + getPublicBlueprintsList() { + if (publicBlueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(publicBlueprints_); + } else { + return publicBlueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public int getPublicBlueprintsCount() { + if (publicBlueprintsBuilder_ == null) { + return publicBlueprints_.size(); + } else { + return publicBlueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.PublicBlueprint getPublicBlueprints(int index) { + if (publicBlueprintsBuilder_ == null) { + return publicBlueprints_.get(index); + } else { + return publicBlueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder setPublicBlueprints( + int index, com.google.cloud.telcoautomation.v1.PublicBlueprint value) { + if (publicBlueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.set(index, value); + onChanged(); + } else { + publicBlueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder setPublicBlueprints( + int index, com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder builderForValue) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + publicBlueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder addPublicBlueprints(com.google.cloud.telcoautomation.v1.PublicBlueprint value) { + if (publicBlueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(value); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder addPublicBlueprints( + int index, com.google.cloud.telcoautomation.v1.PublicBlueprint value) { + if (publicBlueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(index, value); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder addPublicBlueprints( + com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder builderForValue) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(builderForValue.build()); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder addPublicBlueprints( + int index, com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder builderForValue) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder addAllPublicBlueprints( + java.lang.Iterable values) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicBlueprints_); + onChanged(); + } else { + publicBlueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder clearPublicBlueprints() { + if (publicBlueprintsBuilder_ == null) { + publicBlueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + publicBlueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public Builder removePublicBlueprints(int index) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.remove(index); + onChanged(); + } else { + publicBlueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder getPublicBlueprintsBuilder( + int index) { + return getPublicBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder + getPublicBlueprintsOrBuilder(int index) { + if (publicBlueprintsBuilder_ == null) { + return publicBlueprints_.get(index); + } else { + return publicBlueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public java.util.List + getPublicBlueprintsOrBuilderList() { + if (publicBlueprintsBuilder_ != null) { + return publicBlueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publicBlueprints_); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder + addPublicBlueprintsBuilder() { + return getPublicBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.PublicBlueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder addPublicBlueprintsBuilder( + int index) { + return getPublicBlueprintsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1.PublicBlueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + public java.util.List + getPublicBlueprintsBuilderList() { + return getPublicBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.PublicBlueprint, + com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder, + com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder> + getPublicBlueprintsFieldBuilder() { + if (publicBlueprintsBuilder_ == null) { + publicBlueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.PublicBlueprint, + com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder, + com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder>( + publicBlueprints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + publicBlueprints_ = null; + } + return publicBlueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @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.telcoautomation.v1.ListPublicBlueprintsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse) + private static final com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublicBlueprintsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ListPublicBlueprintsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponseOrBuilder.java new file mode 100644 index 000000000000..9d3690fb2d01 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ListPublicBlueprintsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ListPublicBlueprintsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + java.util.List getPublicBlueprintsList(); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.PublicBlueprint getPublicBlueprints(int index); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + int getPublicBlueprintsCount(); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + java.util.List + getPublicBlueprintsOrBuilderList(); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.PublicBlueprint public_blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder getPublicBlueprintsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java new file mode 100644 index 000000000000..f3857d0e89a3 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfig.java new file mode 100644 index 000000000000..b6d633b68ad0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfig.java @@ -0,0 +1,1175 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Configuration of the cluster management
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ManagementConfig} + */ +public final class ManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ManagementConfig) + ManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagementConfig.newBuilder() to construct. + private ManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagementConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ManagementConfig.class, + com.google.cloud.telcoautomation.v1.ManagementConfig.Builder.class); + } + + private int oneofConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneofConfig_; + + public enum OneofConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STANDARD_MANAGEMENT_CONFIG(1), + FULL_MANAGEMENT_CONFIG(2), + ONEOFCONFIG_NOT_SET(0); + private final int value; + + private OneofConfigCase(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 OneofConfigCase valueOf(int value) { + return forNumber(value); + } + + public static OneofConfigCase forNumber(int value) { + switch (value) { + case 1: + return STANDARD_MANAGEMENT_CONFIG; + case 2: + return FULL_MANAGEMENT_CONFIG; + case 0: + return ONEOFCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneofConfigCase getOneofConfigCase() { + return OneofConfigCase.forNumber(oneofConfigCase_); + } + + public static final int STANDARD_MANAGEMENT_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + * + * @return Whether the standardManagementConfig field is set. + */ + @java.lang.Override + public boolean hasStandardManagementConfig() { + return oneofConfigCase_ == 1; + } + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + * + * @return The standardManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfig + getStandardManagementConfig() { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder + getStandardManagementConfigOrBuilder() { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } + + public static final int FULL_MANAGEMENT_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + * @return Whether the fullManagementConfig field is set. + */ + @java.lang.Override + public boolean hasFullManagementConfig() { + return oneofConfigCase_ == 2; + } + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + * @return The fullManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfig getFullManagementConfig() { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder + getFullManagementConfigOrBuilder() { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } + + 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 (oneofConfigCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_); + } + if (oneofConfigCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneofConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_); + } + if (oneofConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_); + } + 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.telcoautomation.v1.ManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ManagementConfig other = + (com.google.cloud.telcoautomation.v1.ManagementConfig) obj; + + if (!getOneofConfigCase().equals(other.getOneofConfigCase())) return false; + switch (oneofConfigCase_) { + case 1: + if (!getStandardManagementConfig().equals(other.getStandardManagementConfig())) + return false; + break; + case 2: + if (!getFullManagementConfig().equals(other.getFullManagementConfig())) 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(); + switch (oneofConfigCase_) { + case 1: + hash = (37 * hash) + STANDARD_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStandardManagementConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + FULL_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFullManagementConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig 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.telcoautomation.v1.ManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig 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.telcoautomation.v1.ManagementConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig 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.telcoautomation.v1.ManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig 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.telcoautomation.v1.ManagementConfig 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; + } + /** + * + * + *
+   * Configuration of the cluster management
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ManagementConfig) + com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ManagementConfig.class, + com.google.cloud.telcoautomation.v1.ManagementConfig.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (standardManagementConfigBuilder_ != null) { + standardManagementConfigBuilder_.clear(); + } + if (fullManagementConfigBuilder_ != null) { + fullManagementConfigBuilder_.clear(); + } + oneofConfigCase_ = 0; + oneofConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ManagementConfig getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ManagementConfig build() { + com.google.cloud.telcoautomation.v1.ManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ManagementConfig buildPartial() { + com.google.cloud.telcoautomation.v1.ManagementConfig result = + new com.google.cloud.telcoautomation.v1.ManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ManagementConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.telcoautomation.v1.ManagementConfig result) { + result.oneofConfigCase_ = oneofConfigCase_; + result.oneofConfig_ = this.oneofConfig_; + if (oneofConfigCase_ == 1 && standardManagementConfigBuilder_ != null) { + result.oneofConfig_ = standardManagementConfigBuilder_.build(); + } + if (oneofConfigCase_ == 2 && fullManagementConfigBuilder_ != null) { + result.oneofConfig_ = fullManagementConfigBuilder_.build(); + } + } + + @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.telcoautomation.v1.ManagementConfig) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ManagementConfig other) { + if (other == com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance()) + return this; + switch (other.getOneofConfigCase()) { + case STANDARD_MANAGEMENT_CONFIG: + { + mergeStandardManagementConfig(other.getStandardManagementConfig()); + break; + } + case FULL_MANAGEMENT_CONFIG: + { + mergeFullManagementConfig(other.getFullManagementConfig()); + break; + } + case ONEOFCONFIG_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: + { + input.readMessage( + getStandardManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + oneofConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getFullManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + oneofConfigCase_ = 2; + 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 oneofConfigCase_ = 0; + private java.lang.Object oneofConfig_; + + public OneofConfigCase getOneofConfigCase() { + return OneofConfigCase.forNumber(oneofConfigCase_); + } + + public Builder clearOneofConfig() { + oneofConfigCase_ = 0; + oneofConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.StandardManagementConfig, + com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder> + standardManagementConfigBuilder_; + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + * + * @return Whether the standardManagementConfig field is set. + */ + @java.lang.Override + public boolean hasStandardManagementConfig() { + return oneofConfigCase_ == 1; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + * + * @return The standardManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfig + getStandardManagementConfig() { + if (standardManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } else { + if (oneofConfigCase_ == 1) { + return standardManagementConfigBuilder_.getMessage(); + } + return com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder setStandardManagementConfig( + com.google.cloud.telcoautomation.v1.StandardManagementConfig value) { + if (standardManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneofConfig_ = value; + onChanged(); + } else { + standardManagementConfigBuilder_.setMessage(value); + } + oneofConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder setStandardManagementConfig( + com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder builderForValue) { + if (standardManagementConfigBuilder_ == null) { + oneofConfig_ = builderForValue.build(); + onChanged(); + } else { + standardManagementConfigBuilder_.setMessage(builderForValue.build()); + } + oneofConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder mergeStandardManagementConfig( + com.google.cloud.telcoautomation.v1.StandardManagementConfig value) { + if (standardManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 1 + && oneofConfig_ + != com.google.cloud.telcoautomation.v1.StandardManagementConfig + .getDefaultInstance()) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1.StandardManagementConfig.newBuilder( + (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + oneofConfig_ = value; + } + onChanged(); + } else { + if (oneofConfigCase_ == 1) { + standardManagementConfigBuilder_.mergeFrom(value); + } else { + standardManagementConfigBuilder_.setMessage(value); + } + } + oneofConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder clearStandardManagementConfig() { + if (standardManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 1) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + onChanged(); + } + } else { + if (oneofConfigCase_ == 1) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + } + standardManagementConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + public com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder + getStandardManagementConfigBuilder() { + return getStandardManagementConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder + getStandardManagementConfigOrBuilder() { + if ((oneofConfigCase_ == 1) && (standardManagementConfigBuilder_ != null)) { + return standardManagementConfigBuilder_.getMessageOrBuilder(); + } else { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.StandardManagementConfig, + com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder> + getStandardManagementConfigFieldBuilder() { + if (standardManagementConfigBuilder_ == null) { + if (!(oneofConfigCase_ == 1)) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } + standardManagementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.StandardManagementConfig, + com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder>( + (com.google.cloud.telcoautomation.v1.StandardManagementConfig) oneofConfig_, + getParentForChildren(), + isClean()); + oneofConfig_ = null; + } + oneofConfigCase_ = 1; + onChanged(); + return standardManagementConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.FullManagementConfig, + com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder> + fullManagementConfigBuilder_; + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + * + * @return Whether the fullManagementConfig field is set. + */ + @java.lang.Override + public boolean hasFullManagementConfig() { + return oneofConfigCase_ == 2; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + * + * @return The fullManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfig getFullManagementConfig() { + if (fullManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } else { + if (oneofConfigCase_ == 2) { + return fullManagementConfigBuilder_.getMessage(); + } + return com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + public Builder setFullManagementConfig( + com.google.cloud.telcoautomation.v1.FullManagementConfig value) { + if (fullManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneofConfig_ = value; + onChanged(); + } else { + fullManagementConfigBuilder_.setMessage(value); + } + oneofConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + public Builder setFullManagementConfig( + com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder builderForValue) { + if (fullManagementConfigBuilder_ == null) { + oneofConfig_ = builderForValue.build(); + onChanged(); + } else { + fullManagementConfigBuilder_.setMessage(builderForValue.build()); + } + oneofConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + public Builder mergeFullManagementConfig( + com.google.cloud.telcoautomation.v1.FullManagementConfig value) { + if (fullManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 2 + && oneofConfig_ + != com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance()) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1.FullManagementConfig.newBuilder( + (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + oneofConfig_ = value; + } + onChanged(); + } else { + if (oneofConfigCase_ == 2) { + fullManagementConfigBuilder_.mergeFrom(value); + } else { + fullManagementConfigBuilder_.setMessage(value); + } + } + oneofConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + public Builder clearFullManagementConfig() { + if (fullManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 2) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + onChanged(); + } + } else { + if (oneofConfigCase_ == 2) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + } + fullManagementConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + public com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder + getFullManagementConfigBuilder() { + return getFullManagementConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder + getFullManagementConfigOrBuilder() { + if ((oneofConfigCase_ == 2) && (fullManagementConfigBuilder_ != null)) { + return fullManagementConfigBuilder_.getMessageOrBuilder(); + } else { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.FullManagementConfig, + com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder> + getFullManagementConfigFieldBuilder() { + if (fullManagementConfigBuilder_ == null) { + if (!(oneofConfigCase_ == 2)) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1.FullManagementConfig.getDefaultInstance(); + } + fullManagementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.FullManagementConfig, + com.google.cloud.telcoautomation.v1.FullManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder>( + (com.google.cloud.telcoautomation.v1.FullManagementConfig) oneofConfig_, + getParentForChildren(), + isClean()); + oneofConfig_ = null; + } + oneofConfigCase_ = 2; + onChanged(); + return fullManagementConfigBuilder_; + } + + @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.telcoautomation.v1.ManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ManagementConfig) + private static final com.google.cloud.telcoautomation.v1.ManagementConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ManagementConfig(); + } + + public static com.google.cloud.telcoautomation.v1.ManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfigOrBuilder.java new file mode 100644 index 000000000000..2e67aa6df8ee --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ManagementConfigOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + * + * @return Whether the standardManagementConfig field is set. + */ + boolean hasStandardManagementConfig(); + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + * + * @return The standardManagementConfig. + */ + com.google.cloud.telcoautomation.v1.StandardManagementConfig getStandardManagementConfig(); + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * .google.cloud.telcoautomation.v1.StandardManagementConfig standard_management_config = 1; + * + */ + com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder + getStandardManagementConfigOrBuilder(); + + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + * @return Whether the fullManagementConfig field is set. + */ + boolean hasFullManagementConfig(); + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + * + * @return The fullManagementConfig. + */ + com.google.cloud.telcoautomation.v1.FullManagementConfig getFullManagementConfig(); + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1.FullManagementConfig full_management_config = 2; + */ + com.google.cloud.telcoautomation.v1.FullManagementConfigOrBuilder + getFullManagementConfigOrBuilder(); + + com.google.cloud.telcoautomation.v1.ManagementConfig.OneofConfigCase getOneofConfigCase(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 000000000000..34acdf942d24 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,1975 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Configuration of the Master Authorized Network that support multiple CIDRs
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig) + MasterAuthorizedNetworksConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. + private MasterAuthorizedNetworksConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MasterAuthorizedNetworksConfig() { + cidrBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MasterAuthorizedNetworksConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.class, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidrBlock. + */ + java.lang.String getCidrBlock(); + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidrBlock. + */ + com.google.protobuf.ByteString getCidrBlockBytes(); + } + /** + * + * + *
+   * CidrBlock contains an optional name and one CIDR block.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) + CidrBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use CidrBlock.newBuilder() to construct. + private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CidrBlock() { + displayName_ = ""; + cidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CidrBlock(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + .class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_BLOCK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidrBlock. + */ + @java.lang.Override + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + 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(); + cidrBlock_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock other = + (com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getCidrBlock().equals(other.getCidrBlock())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlock().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock 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; + } + /** + * + * + *
+     * CidrBlock contains an optional name and one CIDR block.
+     * 
+ * + * Protobuf type {@code + * google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + cidrBlock_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock build() { + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + buildPartial() { + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock result = + new com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cidrBlock_ = cidrBlock_; + } + } + + @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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock other) { + if (other + == com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cidrBlock_ = 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 displayName_ = ""; + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidrBlock. + */ + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidrBlock_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCidrBlock() { + cidrBlock_ = getDefaultInstance().getCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrBlock_ = 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .CidrBlock + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CidrBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock> + cidrBlocks_; + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock> + getCidrBlocksList() { + return cidrBlocks_; + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index) { + return cidrBlocks_.get(index); + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + return cidrBlocks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < cidrBlocks_.size(); i++) { + output.writeMessage(1, cidrBlocks_.get(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 < cidrBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cidrBlocks_.get(i)); + } + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig other = + (com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig) obj; + + if (!getCidrBlocksList().equals(other.getCidrBlocksList())) 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 (getCidrBlocksCount() > 0) { + hash = (37 * hash) + CIDR_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlocksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1.MasterAuthorizedNetworksConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1.MasterAuthorizedNetworksConfig 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; + } + /** + * + * + *
+   * Configuration of the Master Authorized Network that support multiple CIDRs
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig) + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.class, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + } else { + cidrBlocks_ = null; + cidrBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig build() { + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig result = + new com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig result) { + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1.MasterAuthorizedNetworksConfig) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig other) { + if (other + == com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance()) return this; + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCidrBlocksFieldBuilder() + : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + 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.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock m = + input.readMessage( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + .parser(), + extensionRegistry); + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(m); + } else { + cidrBlocksBuilder_.addMessage(m); + } + 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.util.List< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock> + cidrBlocks_ = java.util.Collections.emptyList(); + + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = + new java.util.ArrayList< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock>( + cidrBlocks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + cidrBlocksBuilder_; + + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock> + getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + getCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCidrBlocks( + java.lang.Iterable< + ? extends + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock> + values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + getCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + addCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder() + .addBuilder( + index, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder> + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder>( + cidrBlocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + + @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.telcoautomation.v1.MasterAuthorizedNetworksConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig) + private static final com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig(); + } + + public static com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuthorizedNetworksConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.MasterAuthorizedNetworksConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 000000000000..0c34b2fe0707 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface MasterAuthorizedNetworksConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCidrBlocksList(); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCidrBlocksCount(); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList(); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatus.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatus.java new file mode 100644 index 000000000000..79589dcca574 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatus.java @@ -0,0 +1,1298 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Per-Site Status.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.NFDeploySiteStatus} + */ +public final class NFDeploySiteStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.NFDeploySiteStatus) + NFDeploySiteStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use NFDeploySiteStatus.newBuilder() to construct. + private NFDeploySiteStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NFDeploySiteStatus() { + site_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NFDeploySiteStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.class, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder.class); + } + + public static final int SITE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object site_ = ""; + /** + * + * + *
+   * Output only. Site id.
+   * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The site. + */ + @java.lang.Override + public java.lang.String getSite() { + java.lang.Object ref = site_; + 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(); + site_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Site id.
+   * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for site. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PENDING_DELETION_FIELD_NUMBER = 2; + private boolean pendingDeletion_ = false; + /** + * + * + *
+   * Output only. If true, the Site Deletion is in progress.
+   * 
+ * + * bool pending_deletion = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pendingDeletion. + */ + @java.lang.Override + public boolean getPendingDeletion() { + return pendingDeletion_; + } + + public static final int HYDRATION_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1.HydrationStatus hydration_; + /** + * + * + *
+   * Output only. Hydration status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hydration field is set. + */ + @java.lang.Override + public boolean hasHydration() { + return hydration_ != null; + } + /** + * + * + *
+   * Output only. Hydration status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hydration. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydrationStatus getHydration() { + return hydration_ == null + ? com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance() + : hydration_; + } + /** + * + * + *
+   * Output only. Hydration status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder getHydrationOrBuilder() { + return hydration_ == null + ? com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance() + : hydration_; + } + + public static final int WORKLOAD_FIELD_NUMBER = 4; + private com.google.cloud.telcoautomation.v1.WorkloadStatus workload_; + /** + * + * + *
+   * Output only. Workload status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the workload field is set. + */ + @java.lang.Override + public boolean hasWorkload() { + return workload_ != null; + } + /** + * + * + *
+   * Output only. Workload status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The workload. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.WorkloadStatus getWorkload() { + return workload_ == null + ? com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance() + : workload_; + } + /** + * + * + *
+   * Output only. Workload status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder getWorkloadOrBuilder() { + return workload_ == null + ? com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance() + : workload_; + } + + 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(site_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, site_); + } + if (pendingDeletion_ != false) { + output.writeBool(2, pendingDeletion_); + } + if (hydration_ != null) { + output.writeMessage(3, getHydration()); + } + if (workload_ != null) { + output.writeMessage(4, getWorkload()); + } + 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(site_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, site_); + } + if (pendingDeletion_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, pendingDeletion_); + } + if (hydration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHydration()); + } + if (workload_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWorkload()); + } + 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.telcoautomation.v1.NFDeploySiteStatus)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus other = + (com.google.cloud.telcoautomation.v1.NFDeploySiteStatus) obj; + + if (!getSite().equals(other.getSite())) return false; + if (getPendingDeletion() != other.getPendingDeletion()) return false; + if (hasHydration() != other.hasHydration()) return false; + if (hasHydration()) { + if (!getHydration().equals(other.getHydration())) return false; + } + if (hasWorkload() != other.hasWorkload()) return false; + if (hasWorkload()) { + if (!getWorkload().equals(other.getWorkload())) 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) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + hash = (37 * hash) + PENDING_DELETION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPendingDeletion()); + if (hasHydration()) { + hash = (37 * hash) + HYDRATION_FIELD_NUMBER; + hash = (53 * hash) + getHydration().hashCode(); + } + if (hasWorkload()) { + hash = (37 * hash) + WORKLOAD_FIELD_NUMBER; + hash = (53 * hash) + getWorkload().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus 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.telcoautomation.v1.NFDeploySiteStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus 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.telcoautomation.v1.NFDeploySiteStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus 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.telcoautomation.v1.NFDeploySiteStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus 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.telcoautomation.v1.NFDeploySiteStatus 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; + } + /** + * + * + *
+   * Per-Site Status.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.NFDeploySiteStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.NFDeploySiteStatus) + com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.class, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + site_ = ""; + pendingDeletion_ = false; + hydration_ = null; + if (hydrationBuilder_ != null) { + hydrationBuilder_.dispose(); + hydrationBuilder_ = null; + } + workload_ = null; + if (workloadBuilder_ != null) { + workloadBuilder_.dispose(); + workloadBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus build() { + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus buildPartial() { + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus result = + new com.google.cloud.telcoautomation.v1.NFDeploySiteStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.NFDeploySiteStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.site_ = site_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pendingDeletion_ = pendingDeletion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hydration_ = hydrationBuilder_ == null ? hydration_ : hydrationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workload_ = workloadBuilder_ == null ? workload_ : workloadBuilder_.build(); + } + } + + @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.telcoautomation.v1.NFDeploySiteStatus) { + return mergeFrom((com.google.cloud.telcoautomation.v1.NFDeploySiteStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.NFDeploySiteStatus other) { + if (other == com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.getDefaultInstance()) + return this; + if (!other.getSite().isEmpty()) { + site_ = other.site_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPendingDeletion() != false) { + setPendingDeletion(other.getPendingDeletion()); + } + if (other.hasHydration()) { + mergeHydration(other.getHydration()); + } + if (other.hasWorkload()) { + mergeWorkload(other.getWorkload()); + } + 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: + { + site_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pendingDeletion_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getHydrationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getWorkloadFieldBuilder().getBuilder(), extensionRegistry); + 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 site_ = ""; + /** + * + * + *
+     * Output only. Site id.
+     * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The site. + */ + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Site id.
+     * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for site. + */ + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Site id.
+     * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The site to set. + * @return This builder for chaining. + */ + public Builder setSite(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Site id.
+     * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSite() { + site_ = getDefaultInstance().getSite(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Site id.
+     * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for site to set. + * @return This builder for chaining. + */ + public Builder setSiteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + site_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean pendingDeletion_; + /** + * + * + *
+     * Output only. If true, the Site Deletion is in progress.
+     * 
+ * + * bool pending_deletion = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pendingDeletion. + */ + @java.lang.Override + public boolean getPendingDeletion() { + return pendingDeletion_; + } + /** + * + * + *
+     * Output only. If true, the Site Deletion is in progress.
+     * 
+ * + * bool pending_deletion = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pendingDeletion to set. + * @return This builder for chaining. + */ + public Builder setPendingDeletion(boolean value) { + + pendingDeletion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If true, the Site Deletion is in progress.
+     * 
+ * + * bool pending_deletion = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPendingDeletion() { + bitField0_ = (bitField0_ & ~0x00000002); + pendingDeletion_ = false; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.HydrationStatus hydration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydrationStatus, + com.google.cloud.telcoautomation.v1.HydrationStatus.Builder, + com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder> + hydrationBuilder_; + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hydration field is set. + */ + public boolean hasHydration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hydration. + */ + public com.google.cloud.telcoautomation.v1.HydrationStatus getHydration() { + if (hydrationBuilder_ == null) { + return hydration_ == null + ? com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance() + : hydration_; + } else { + return hydrationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHydration(com.google.cloud.telcoautomation.v1.HydrationStatus value) { + if (hydrationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hydration_ = value; + } else { + hydrationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHydration( + com.google.cloud.telcoautomation.v1.HydrationStatus.Builder builderForValue) { + if (hydrationBuilder_ == null) { + hydration_ = builderForValue.build(); + } else { + hydrationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHydration(com.google.cloud.telcoautomation.v1.HydrationStatus value) { + if (hydrationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && hydration_ != null + && hydration_ + != com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance()) { + getHydrationBuilder().mergeFrom(value); + } else { + hydration_ = value; + } + } else { + hydrationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHydration() { + bitField0_ = (bitField0_ & ~0x00000004); + hydration_ = null; + if (hydrationBuilder_ != null) { + hydrationBuilder_.dispose(); + hydrationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.HydrationStatus.Builder getHydrationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getHydrationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder getHydrationOrBuilder() { + if (hydrationBuilder_ != null) { + return hydrationBuilder_.getMessageOrBuilder(); + } else { + return hydration_ == null + ? com.google.cloud.telcoautomation.v1.HydrationStatus.getDefaultInstance() + : hydration_; + } + } + /** + * + * + *
+     * Output only. Hydration status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydrationStatus, + com.google.cloud.telcoautomation.v1.HydrationStatus.Builder, + com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder> + getHydrationFieldBuilder() { + if (hydrationBuilder_ == null) { + hydrationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydrationStatus, + com.google.cloud.telcoautomation.v1.HydrationStatus.Builder, + com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder>( + getHydration(), getParentForChildren(), isClean()); + hydration_ = null; + } + return hydrationBuilder_; + } + + private com.google.cloud.telcoautomation.v1.WorkloadStatus workload_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.WorkloadStatus, + com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder, + com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder> + workloadBuilder_; + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the workload field is set. + */ + public boolean hasWorkload() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The workload. + */ + public com.google.cloud.telcoautomation.v1.WorkloadStatus getWorkload() { + if (workloadBuilder_ == null) { + return workload_ == null + ? com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance() + : workload_; + } else { + return workloadBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWorkload(com.google.cloud.telcoautomation.v1.WorkloadStatus value) { + if (workloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workload_ = value; + } else { + workloadBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWorkload( + com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder builderForValue) { + if (workloadBuilder_ == null) { + workload_ = builderForValue.build(); + } else { + workloadBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeWorkload(com.google.cloud.telcoautomation.v1.WorkloadStatus value) { + if (workloadBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && workload_ != null + && workload_ + != com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance()) { + getWorkloadBuilder().mergeFrom(value); + } else { + workload_ = value; + } + } else { + workloadBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWorkload() { + bitField0_ = (bitField0_ & ~0x00000008); + workload_ = null; + if (workloadBuilder_ != null) { + workloadBuilder_.dispose(); + workloadBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder getWorkloadBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getWorkloadFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder getWorkloadOrBuilder() { + if (workloadBuilder_ != null) { + return workloadBuilder_.getMessageOrBuilder(); + } else { + return workload_ == null + ? com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance() + : workload_; + } + } + /** + * + * + *
+     * Output only. Workload status.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.WorkloadStatus, + com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder, + com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder> + getWorkloadFieldBuilder() { + if (workloadBuilder_ == null) { + workloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.WorkloadStatus, + com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder, + com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder>( + getWorkload(), getParentForChildren(), isClean()); + workload_ = null; + } + return workloadBuilder_; + } + + @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.telcoautomation.v1.NFDeploySiteStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.NFDeploySiteStatus) + private static final com.google.cloud.telcoautomation.v1.NFDeploySiteStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.NFDeploySiteStatus(); + } + + public static com.google.cloud.telcoautomation.v1.NFDeploySiteStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NFDeploySiteStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.NFDeploySiteStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatusOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatusOrBuilder.java new file mode 100644 index 000000000000..386a7ee93212 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeploySiteStatusOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface NFDeploySiteStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.NFDeploySiteStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Site id.
+   * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The site. + */ + java.lang.String getSite(); + /** + * + * + *
+   * Output only. Site id.
+   * 
+ * + * string site = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for site. + */ + com.google.protobuf.ByteString getSiteBytes(); + + /** + * + * + *
+   * Output only. If true, the Site Deletion is in progress.
+   * 
+ * + * bool pending_deletion = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pendingDeletion. + */ + boolean getPendingDeletion(); + + /** + * + * + *
+   * Output only. Hydration status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hydration field is set. + */ + boolean hasHydration(); + /** + * + * + *
+   * Output only. Hydration status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hydration. + */ + com.google.cloud.telcoautomation.v1.HydrationStatus getHydration(); + /** + * + * + *
+   * Output only. Hydration status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydrationStatus hydration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.HydrationStatusOrBuilder getHydrationOrBuilder(); + + /** + * + * + *
+   * Output only. Workload status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the workload field is set. + */ + boolean hasWorkload(); + /** + * + * + *
+   * Output only. Workload status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The workload. + */ + com.google.cloud.telcoautomation.v1.WorkloadStatus getWorkload(); + /** + * + * + *
+   * Output only. Workload status.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.WorkloadStatus workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder getWorkloadOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatus.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatus.java new file mode 100644 index 000000000000..d87fa9092c43 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatus.java @@ -0,0 +1,1182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Deployment status of NFDeploy.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.NFDeployStatus} + */ +public final class NFDeployStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.NFDeployStatus) + NFDeployStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use NFDeployStatus.newBuilder() to construct. + private NFDeployStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NFDeployStatus() { + sites_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NFDeployStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.NFDeployStatus.class, + com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder.class); + } + + public static final int TARGETED_NFS_FIELD_NUMBER = 1; + private int targetedNfs_ = 0; + /** + * + * + *
+   * Output only. Total number of NFs targeted by this deployment
+   * 
+ * + * int32 targeted_nfs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The targetedNfs. + */ + @java.lang.Override + public int getTargetedNfs() { + return targetedNfs_; + } + + public static final int READY_NFS_FIELD_NUMBER = 2; + private int readyNfs_ = 0; + /** + * + * + *
+   * Output only. Total number of NFs targeted by this deployment with a Ready
+   * Condition set.
+   * 
+ * + * int32 ready_nfs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readyNfs. + */ + @java.lang.Override + public int getReadyNfs() { + return readyNfs_; + } + + public static final int SITES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List sites_; + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getSitesList() { + return sites_; + } + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getSitesOrBuilderList() { + return sites_; + } + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSitesCount() { + return sites_.size(); + } + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus getSites(int index) { + return sites_.get(index); + } + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder getSitesOrBuilder( + int index) { + return sites_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (targetedNfs_ != 0) { + output.writeInt32(1, targetedNfs_); + } + if (readyNfs_ != 0) { + output.writeInt32(2, readyNfs_); + } + for (int i = 0; i < sites_.size(); i++) { + output.writeMessage(3, sites_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetedNfs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, targetedNfs_); + } + if (readyNfs_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, readyNfs_); + } + for (int i = 0; i < sites_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sites_.get(i)); + } + 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.telcoautomation.v1.NFDeployStatus)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.NFDeployStatus other = + (com.google.cloud.telcoautomation.v1.NFDeployStatus) obj; + + if (getTargetedNfs() != other.getTargetedNfs()) return false; + if (getReadyNfs() != other.getReadyNfs()) return false; + if (!getSitesList().equals(other.getSitesList())) 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) + TARGETED_NFS_FIELD_NUMBER; + hash = (53 * hash) + getTargetedNfs(); + hash = (37 * hash) + READY_NFS_FIELD_NUMBER; + hash = (53 * hash) + getReadyNfs(); + if (getSitesCount() > 0) { + hash = (37 * hash) + SITES_FIELD_NUMBER; + hash = (53 * hash) + getSitesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus 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.telcoautomation.v1.NFDeployStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus 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.telcoautomation.v1.NFDeployStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus 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.telcoautomation.v1.NFDeployStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus 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.telcoautomation.v1.NFDeployStatus 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; + } + /** + * + * + *
+   * Deployment status of NFDeploy.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.NFDeployStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.NFDeployStatus) + com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.NFDeployStatus.class, + com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.NFDeployStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetedNfs_ = 0; + readyNfs_ = 0; + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + } else { + sites_ = null; + sitesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeployStatus getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeployStatus build() { + com.google.cloud.telcoautomation.v1.NFDeployStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeployStatus buildPartial() { + com.google.cloud.telcoautomation.v1.NFDeployStatus result = + new com.google.cloud.telcoautomation.v1.NFDeployStatus(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.NFDeployStatus result) { + if (sitesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sites_ = java.util.Collections.unmodifiableList(sites_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sites_ = sites_; + } else { + result.sites_ = sitesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.NFDeployStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.targetedNfs_ = targetedNfs_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readyNfs_ = readyNfs_; + } + } + + @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.telcoautomation.v1.NFDeployStatus) { + return mergeFrom((com.google.cloud.telcoautomation.v1.NFDeployStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.NFDeployStatus other) { + if (other == com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance()) + return this; + if (other.getTargetedNfs() != 0) { + setTargetedNfs(other.getTargetedNfs()); + } + if (other.getReadyNfs() != 0) { + setReadyNfs(other.getReadyNfs()); + } + if (sitesBuilder_ == null) { + if (!other.sites_.isEmpty()) { + if (sites_.isEmpty()) { + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSitesIsMutable(); + sites_.addAll(other.sites_); + } + onChanged(); + } + } else { + if (!other.sites_.isEmpty()) { + if (sitesBuilder_.isEmpty()) { + sitesBuilder_.dispose(); + sitesBuilder_ = null; + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000004); + sitesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSitesFieldBuilder() + : null; + } else { + sitesBuilder_.addAllMessages(other.sites_); + } + } + } + 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: + { + targetedNfs_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + readyNfs_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus m = + input.readMessage( + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.parser(), + extensionRegistry); + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(m); + } else { + sitesBuilder_.addMessage(m); + } + 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 targetedNfs_; + /** + * + * + *
+     * Output only. Total number of NFs targeted by this deployment
+     * 
+ * + * int32 targeted_nfs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The targetedNfs. + */ + @java.lang.Override + public int getTargetedNfs() { + return targetedNfs_; + } + /** + * + * + *
+     * Output only. Total number of NFs targeted by this deployment
+     * 
+ * + * int32 targeted_nfs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The targetedNfs to set. + * @return This builder for chaining. + */ + public Builder setTargetedNfs(int value) { + + targetedNfs_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Total number of NFs targeted by this deployment
+     * 
+ * + * int32 targeted_nfs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTargetedNfs() { + bitField0_ = (bitField0_ & ~0x00000001); + targetedNfs_ = 0; + onChanged(); + return this; + } + + private int readyNfs_; + /** + * + * + *
+     * Output only. Total number of NFs targeted by this deployment with a Ready
+     * Condition set.
+     * 
+ * + * int32 ready_nfs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readyNfs. + */ + @java.lang.Override + public int getReadyNfs() { + return readyNfs_; + } + /** + * + * + *
+     * Output only. Total number of NFs targeted by this deployment with a Ready
+     * Condition set.
+     * 
+ * + * int32 ready_nfs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The readyNfs to set. + * @return This builder for chaining. + */ + public Builder setReadyNfs(int value) { + + readyNfs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Total number of NFs targeted by this deployment with a Ready
+     * Condition set.
+     * 
+ * + * int32 ready_nfs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReadyNfs() { + bitField0_ = (bitField0_ & ~0x00000002); + readyNfs_ = 0; + onChanged(); + return this; + } + + private java.util.List sites_ = + java.util.Collections.emptyList(); + + private void ensureSitesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sites_ = + new java.util.ArrayList(sites_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder> + sitesBuilder_; + + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getSitesList() { + if (sitesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sites_); + } else { + return sitesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSitesCount() { + if (sitesBuilder_ == null) { + return sites_.size(); + } else { + return sitesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus getSites(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSites( + int index, com.google.cloud.telcoautomation.v1.NFDeploySiteStatus value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.set(index, value); + onChanged(); + } else { + sitesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSites( + int index, com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.set(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSites(com.google.cloud.telcoautomation.v1.NFDeploySiteStatus value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(value); + onChanged(); + } else { + sitesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSites( + int index, com.google.cloud.telcoautomation.v1.NFDeploySiteStatus value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(index, value); + onChanged(); + } else { + sitesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSites( + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSites( + int index, com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSites( + java.lang.Iterable + values) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sites_); + onChanged(); + } else { + sitesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSites() { + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sitesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSites(int index) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.remove(index); + onChanged(); + } else { + sitesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder getSitesBuilder( + int index) { + return getSitesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder getSitesOrBuilder( + int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSitesOrBuilderList() { + if (sitesBuilder_ != null) { + return sitesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sites_); + } + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder addSitesBuilder() { + return getSitesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder addSitesBuilder( + int index) { + return getSitesFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Per-Site Status.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSitesBuilderList() { + return getSitesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder> + getSitesFieldBuilder() { + if (sitesBuilder_ == null) { + sitesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus.Builder, + com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder>( + sites_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + sites_ = null; + } + return sitesBuilder_; + } + + @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.telcoautomation.v1.NFDeployStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.NFDeployStatus) + private static final com.google.cloud.telcoautomation.v1.NFDeployStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.NFDeployStatus(); + } + + public static com.google.cloud.telcoautomation.v1.NFDeployStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NFDeployStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.NFDeployStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatusOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatusOrBuilder.java new file mode 100644 index 000000000000..947bea2e1493 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/NFDeployStatusOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface NFDeployStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.NFDeployStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Total number of NFs targeted by this deployment
+   * 
+ * + * int32 targeted_nfs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The targetedNfs. + */ + int getTargetedNfs(); + + /** + * + * + *
+   * Output only. Total number of NFs targeted by this deployment with a Ready
+   * Condition set.
+   * 
+ * + * int32 ready_nfs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readyNfs. + */ + int getReadyNfs(); + + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getSitesList(); + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.NFDeploySiteStatus getSites(int index); + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSitesCount(); + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSitesOrBuilderList(); + /** + * + * + *
+   * Output only. Per-Site Status.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1.NFDeploySiteStatus sites = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.NFDeploySiteStatusOrBuilder getSitesOrBuilder(int index); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadata.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadata.java new file mode 100644 index 000000000000..2cea7e7affd2 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadata.java @@ -0,0 +1,1829 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.OperationMetadata} + */ +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.OperationMetadata) + OperationMetadataOrBuilder { + 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_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.OperationMetadata.class, + com.google.cloud.telcoautomation.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]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * + * + * @return The createTime. + */ + @java.lang.Override + 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]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + 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]; + * + * + * @return The endTime. + */ + @java.lang.Override + 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]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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 + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + 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() { + 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); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + 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(); + 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() { + 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); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + 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(); + 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() { + 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); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + 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 + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + 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() { + 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); + apiVersion_ = 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 (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + 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.telcoautomation.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.OperationMetadata other = + (com.google.cloud.telcoautomation.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (!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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().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 = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata 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.telcoautomation.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.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.telcoautomation.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata 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.telcoautomation.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata 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.telcoautomation.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.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); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.telcoautomation.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); + } + + @java.lang.Override + 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.telcoautomation.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.OperationMetadata) + com.google.cloud.telcoautomation.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.OperationMetadata.class, + com.google.cloud.telcoautomation.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.OperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OperationMetadata build() { + com.google.cloud.telcoautomation.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OperationMetadata buildPartial() { + com.google.cloud.telcoautomation.v1.OperationMetadata result = + new com.google.cloud.telcoautomation.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + } + + @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.telcoautomation.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.telcoautomation.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.OperationMetadata other) { + if (other == com.google.cloud.telcoautomation.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + 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: + { + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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_; + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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]; + * + * + * @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. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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_; + } + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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> + 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 endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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]; + * + * + * @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]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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_; + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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> + 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()); + endTime_ = null; + } + return endTimeBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (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]; + * + * @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(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (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]; + * + * @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(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * 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
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + 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) { + 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.telcoautomation.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.OperationMetadata) + private static final com.google.cloud.telcoautomation.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.OperationMetadata(); + } + + public static com.google.cloud.telcoautomation.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadataOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..fb91b4e6d1e6 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,218 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.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]; + * + * + * @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]; + * + * + * @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]; + * + */ + 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]; + * + * + * @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]; + * + * + * @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]; + * + */ + 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(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * 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(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationCluster.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationCluster.java new file mode 100644 index 000000000000..9d0663c8de2b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationCluster.java @@ -0,0 +1,2357 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Orchestration cluster represents a GKE cluster with config controller and
+ * TNA specific components installed on it.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.OrchestrationCluster} + */ +public final class OrchestrationCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.OrchestrationCluster) + OrchestrationClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrchestrationCluster.newBuilder() to construct. + private OrchestrationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrchestrationCluster() { + name_ = ""; + tnaVersion_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrchestrationCluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.OrchestrationCluster.class, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder.class); + } + + /** + * + * + *
+   * Possible states that the Orchestration Cluster can be in.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.OrchestrationCluster.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * OrchestrationCluster is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * OrchestrationCluster has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * OrchestrationCluster is being deleted.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
+     * OrchestrationCluster encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * OrchestrationCluster is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * OrchestrationCluster has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * OrchestrationCluster is being deleted.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
+     * OrchestrationCluster encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.OrchestrationCluster.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the orchestration cluster. The name of orchestration cluster cannot
+   * be more than 24 characters.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the orchestration cluster. The name of orchestration cluster cannot
+   * be more than 24 characters.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.telcoautomation.v1.ManagementConfig managementConfig_; + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + * + * @return Whether the managementConfig field is set. + */ + @java.lang.Override + public boolean hasManagementConfig() { + return managementConfig_ != null; + } + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + * + * @return The managementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ManagementConfig getManagementConfig() { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder + getManagementConfigOrBuilder() { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .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. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_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(); + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * 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(); + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * 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; + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * 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 TNA_VERSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + @java.lang.Override + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + 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(); + tnaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster.State getState() { + com.google.cloud.telcoautomation.v1.OrchestrationCluster.State result = + com.google.cloud.telcoautomation.v1.OrchestrationCluster.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.OrchestrationCluster.State.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(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 (managementConfig_ != null) { + output.writeMessage(5, getManagementConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tnaVersion_); + } + if (state_ + != com.google.cloud.telcoautomation.v1.OrchestrationCluster.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + 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 (managementConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagementConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tnaVersion_); + } + if (state_ + != com.google.cloud.telcoautomation.v1.OrchestrationCluster.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + 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.telcoautomation.v1.OrchestrationCluster)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.OrchestrationCluster other = + (com.google.cloud.telcoautomation.v1.OrchestrationCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (hasManagementConfig() != other.hasManagementConfig()) return false; + if (hasManagementConfig()) { + if (!getManagementConfig().equals(other.getManagementConfig())) 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 (!getTnaVersion().equals(other.getTnaVersion())) return false; + if (state_ != other.state_) 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(); + if (hasManagementConfig()) { + hash = (37 * hash) + MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagementConfig().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) + TNA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTnaVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster 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.telcoautomation.v1.OrchestrationCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster 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.telcoautomation.v1.OrchestrationCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster 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.telcoautomation.v1.OrchestrationCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster 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.telcoautomation.v1.OrchestrationCluster 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; + } + /** + * + * + *
+   * Orchestration cluster represents a GKE cluster with config controller and
+   * TNA specific components installed on it.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.OrchestrationCluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.OrchestrationCluster) + com.google.cloud.telcoautomation.v1.OrchestrationClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.OrchestrationCluster.class, + com.google.cloud.telcoautomation.v1.OrchestrationCluster.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.OrchestrationCluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + managementConfig_ = null; + if (managementConfigBuilder_ != null) { + managementConfigBuilder_.dispose(); + managementConfigBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + tnaVersion_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster build() { + com.google.cloud.telcoautomation.v1.OrchestrationCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster buildPartial() { + com.google.cloud.telcoautomation.v1.OrchestrationCluster result = + new com.google.cloud.telcoautomation.v1.OrchestrationCluster(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.OrchestrationCluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managementConfig_ = + managementConfigBuilder_ == null ? managementConfig_ : managementConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tnaVersion_ = tnaVersion_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + } + + @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.telcoautomation.v1.OrchestrationCluster) { + return mergeFrom((com.google.cloud.telcoautomation.v1.OrchestrationCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.OrchestrationCluster other) { + if (other == com.google.cloud.telcoautomation.v1.OrchestrationCluster.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasManagementConfig()) { + mergeManagementConfig(other.getManagementConfig()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.getTnaVersion().isEmpty()) { + tnaVersion_ = other.tnaVersion_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + getManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + tnaVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + 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_ = ""; + /** + * + * + *
+     * Name of the orchestration cluster. The name of orchestration cluster cannot
+     * be more than 24 characters.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the orchestration cluster. The name of orchestration cluster cannot
+     * be more than 24 characters.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the orchestration cluster. The name of orchestration cluster cannot
+     * be more than 24 characters.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the orchestration cluster. The name of orchestration cluster cannot
+     * be more than 24 characters.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the orchestration cluster. The name of orchestration cluster cannot
+     * be more than 24 characters.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.ManagementConfig managementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.ManagementConfig, + com.google.cloud.telcoautomation.v1.ManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder> + managementConfigBuilder_; + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + * + * @return Whether the managementConfig field is set. + */ + public boolean hasManagementConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + * + * @return The managementConfig. + */ + public com.google.cloud.telcoautomation.v1.ManagementConfig getManagementConfig() { + if (managementConfigBuilder_ == null) { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } else { + return managementConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + public Builder setManagementConfig(com.google.cloud.telcoautomation.v1.ManagementConfig value) { + if (managementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managementConfig_ = value; + } else { + managementConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + public Builder setManagementConfig( + com.google.cloud.telcoautomation.v1.ManagementConfig.Builder builderForValue) { + if (managementConfigBuilder_ == null) { + managementConfig_ = builderForValue.build(); + } else { + managementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + public Builder mergeManagementConfig( + com.google.cloud.telcoautomation.v1.ManagementConfig value) { + if (managementConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && managementConfig_ != null + && managementConfig_ + != com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance()) { + getManagementConfigBuilder().mergeFrom(value); + } else { + managementConfig_ = value; + } + } else { + managementConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + public Builder clearManagementConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + managementConfig_ = null; + if (managementConfigBuilder_ != null) { + managementConfigBuilder_.dispose(); + managementConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + public com.google.cloud.telcoautomation.v1.ManagementConfig.Builder + getManagementConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getManagementConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + public com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder + getManagementConfigOrBuilder() { + if (managementConfigBuilder_ != null) { + return managementConfigBuilder_.getMessageOrBuilder(); + } else { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.ManagementConfig, + com.google.cloud.telcoautomation.v1.ManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder> + getManagementConfigFieldBuilder() { + if (managementConfigBuilder_ == null) { + managementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.ManagementConfig, + com.google.cloud.telcoautomation.v1.ManagementConfig.Builder, + com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder>( + getManagementConfig(), getParentForChildren(), isClean()); + managementConfig_ = null; + } + return managementConfigBuilder_; + } + + 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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private 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_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tnaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTnaVersion() { + tnaVersion_ = getDefaultInstance().getTnaVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.OrchestrationCluster.State getState() { + com.google.cloud.telcoautomation.v1.OrchestrationCluster.State result = + com.google.cloud.telcoautomation.v1.OrchestrationCluster.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1.OrchestrationCluster.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.telcoautomation.v1.OrchestrationCluster.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 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.telcoautomation.v1.OrchestrationCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.OrchestrationCluster) + private static final com.google.cloud.telcoautomation.v1.OrchestrationCluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.OrchestrationCluster(); + } + + public static com.google.cloud.telcoautomation.v1.OrchestrationCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrchestrationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.OrchestrationCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java new file mode 100644 index 000000000000..4277ce83e5e3 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 OrchestrationClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORCHESTRATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + + @Deprecated + protected OrchestrationClusterName() { + project = null; + location = null; + orchestrationCluster = null; + } + + private OrchestrationClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OrchestrationClusterName of( + String project, String location, String orchestrationCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .build(); + } + + public static String format(String project, String location, String orchestrationCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .build() + .toString(); + } + + public static OrchestrationClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER.validatedMatch( + formattedString, "OrchestrationClusterName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("orchestration_cluster")); + } + + 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 (OrchestrationClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER.instantiate( + "project", project, "location", location, "orchestration_cluster", orchestrationCluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OrchestrationClusterName that = ((OrchestrationClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster); + } + 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(orchestrationCluster); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + private Builder(OrchestrationClusterName orchestrationClusterName) { + this.project = orchestrationClusterName.project; + this.location = orchestrationClusterName.location; + this.orchestrationCluster = orchestrationClusterName.orchestrationCluster; + } + + public OrchestrationClusterName build() { + return new OrchestrationClusterName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterOrBuilder.java new file mode 100644 index 000000000000..68e6a895a9cf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterOrBuilder.java @@ -0,0 +1,275 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface OrchestrationClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.OrchestrationCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the orchestration cluster. The name of orchestration cluster cannot
+   * be more than 24 characters.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the orchestration cluster. The name of orchestration cluster cannot
+   * be more than 24 characters.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + * + * @return Whether the managementConfig field is set. + */ + boolean hasManagementConfig(); + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + * + * @return The managementConfig. + */ + com.google.cloud.telcoautomation.v1.ManagementConfig getManagementConfig(); + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1.ManagementConfig management_config = 5; + */ + com.google.cloud.telcoautomation.v1.ManagementConfigOrBuilder getManagementConfigOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + java.lang.String getTnaVersion(); + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + com.google.protobuf.ByteString getTnaVersionBytes(); + + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1.OrchestrationCluster.State getState(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequest.java new file mode 100644 index 000000000000..16e3a60a2e43 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `ProposeBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ProposeBlueprintRequest} + */ +public final class ProposeBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ProposeBlueprintRequest) + ProposeBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProposeBlueprintRequest.newBuilder() to construct. + private ProposeBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProposeBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProposeBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * 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.telcoautomation.v1.ProposeBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest) 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.telcoautomation.v1.ProposeBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest 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.telcoautomation.v1.ProposeBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest 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.telcoautomation.v1.ProposeBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest 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.telcoautomation.v1.ProposeBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest 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.telcoautomation.v1.ProposeBlueprintRequest 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 object for `ProposeBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ProposeBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ProposeBlueprintRequest) + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest 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.telcoautomation.v1.ProposeBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest.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. The name of the blueprint being proposed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being proposed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being proposed.
+     * 
+ * + * + * 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. The name of the blueprint being proposed.
+     * 
+ * + * + * 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. The name of the blueprint being proposed.
+     * 
+ * + * + * 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.telcoautomation.v1.ProposeBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ProposeBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProposeBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ProposeBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..9a2c41a1a2a6 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ProposeBlueprintRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ProposeBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ProposeBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprint.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprint.java new file mode 100644 index 000000000000..29f9b7f69dd7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprint.java @@ -0,0 +1,1440 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * A Blueprint contains a collection of kubernetes resources in the form of
+ * YAML files. The file contents of a blueprint are collectively known as
+ * package.
+ * Public blueprint is a TNA provided blueprint that in present in TNA's public
+ * catalog. A user can copy the public blueprint to their private catalog for
+ * further modifications.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.PublicBlueprint} + */ +public final class PublicBlueprint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.PublicBlueprint) + PublicBlueprintOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicBlueprint.newBuilder() to construct. + private PublicBlueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PublicBlueprint() { + name_ = ""; + displayName_ = ""; + description_ = ""; + deploymentLevel_ = 0; + sourceProvider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PublicBlueprint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.PublicBlueprint.class, + com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @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 DEPLOYMENT_LEVEL_FIELD_NUMBER = 4; + private int deploymentLevel_ = 0; + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel() { + com.google.cloud.telcoautomation.v1.DeploymentLevel result = + com.google.cloud.telcoautomation.v1.DeploymentLevel.forNumber(deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentLevel.UNRECOGNIZED + : result; + } + + public static final int SOURCE_PROVIDER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The sourceProvider. + */ + @java.lang.Override + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + 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(); + sourceProvider_ = s; + return s; + } + } + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The bytes for sourceProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLBACK_SUPPORT_FIELD_NUMBER = 15; + private boolean rollbackSupport_ = false; + /** + * + * + *
+   * Output only. Indicates if the deployment created from this blueprint can be
+   * rolled back.
+   * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + @java.lang.Override + public boolean getRollbackSupport() { + return rollbackSupport_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1.DeploymentLevel.DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, deploymentLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceProvider_); + } + if (rollbackSupport_ != false) { + output.writeBool(15, rollbackSupport_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1.DeploymentLevel.DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, deploymentLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceProvider_); + } + if (rollbackSupport_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, rollbackSupport_); + } + 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.telcoautomation.v1.PublicBlueprint)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.PublicBlueprint other = + (com.google.cloud.telcoautomation.v1.PublicBlueprint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (deploymentLevel_ != other.deploymentLevel_) return false; + if (!getSourceProvider().equals(other.getSourceProvider())) return false; + if (getRollbackSupport() != other.getRollbackSupport()) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DEPLOYMENT_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + deploymentLevel_; + hash = (37 * hash) + SOURCE_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvider().hashCode(); + hash = (37 * hash) + ROLLBACK_SUPPORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRollbackSupport()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint 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.telcoautomation.v1.PublicBlueprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint 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.telcoautomation.v1.PublicBlueprint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint 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.telcoautomation.v1.PublicBlueprint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint 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.telcoautomation.v1.PublicBlueprint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Blueprint contains a collection of kubernetes resources in the form of
+   * YAML files. The file contents of a blueprint are collectively known as
+   * package.
+   * Public blueprint is a TNA provided blueprint that in present in TNA's public
+   * catalog. A user can copy the public blueprint to their private catalog for
+   * further modifications.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.PublicBlueprint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.PublicBlueprint) + com.google.cloud.telcoautomation.v1.PublicBlueprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.PublicBlueprint.class, + com.google.cloud.telcoautomation.v1.PublicBlueprint.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.PublicBlueprint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + deploymentLevel_ = 0; + sourceProvider_ = ""; + rollbackSupport_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.PublicBlueprint getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.PublicBlueprint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.PublicBlueprint build() { + com.google.cloud.telcoautomation.v1.PublicBlueprint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.PublicBlueprint buildPartial() { + com.google.cloud.telcoautomation.v1.PublicBlueprint result = + new com.google.cloud.telcoautomation.v1.PublicBlueprint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.PublicBlueprint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deploymentLevel_ = deploymentLevel_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceProvider_ = sourceProvider_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rollbackSupport_ = rollbackSupport_; + } + } + + @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.telcoautomation.v1.PublicBlueprint) { + return mergeFrom((com.google.cloud.telcoautomation.v1.PublicBlueprint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.PublicBlueprint other) { + if (other == com.google.cloud.telcoautomation.v1.PublicBlueprint.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.deploymentLevel_ != 0) { + setDeploymentLevelValue(other.getDeploymentLevelValue()); + } + if (!other.getSourceProvider().isEmpty()) { + sourceProvider_ = other.sourceProvider_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRollbackSupport() != false) { + setRollbackSupport(other.getRollbackSupport()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + deploymentLevel_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + sourceProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 120: + { + rollbackSupport_ = input.readBool(); + bitField0_ |= 0x00000020; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private int deploymentLevel_ = 0; + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @param value The enum numeric value on the wire for deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevelValue(int value) { + deploymentLevel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel() { + com.google.cloud.telcoautomation.v1.DeploymentLevel result = + com.google.cloud.telcoautomation.v1.DeploymentLevel.forNumber(deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1.DeploymentLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @param value The deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevel(com.google.cloud.telcoautomation.v1.DeploymentLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + deploymentLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+     * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentLevel() { + bitField0_ = (bitField0_ & ~0x00000008); + deploymentLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @return The sourceProvider. + */ + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @return The bytes for sourceProvider. + */ + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @param value The sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvider_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @return This builder for chaining. + */ + public Builder clearSourceProvider() { + sourceProvider_ = getDefaultInstance().getSourceProvider(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @param value The bytes for sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProvider_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean rollbackSupport_; + /** + * + * + *
+     * Output only. Indicates if the deployment created from this blueprint can be
+     * rolled back.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + @java.lang.Override + public boolean getRollbackSupport() { + return rollbackSupport_; + } + /** + * + * + *
+     * Output only. Indicates if the deployment created from this blueprint can be
+     * rolled back.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The rollbackSupport to set. + * @return This builder for chaining. + */ + public Builder setRollbackSupport(boolean value) { + + rollbackSupport_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates if the deployment created from this blueprint can be
+     * rolled back.
+     * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRollbackSupport() { + bitField0_ = (bitField0_ & ~0x00000020); + rollbackSupport_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.PublicBlueprint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.PublicBlueprint) + private static final com.google.cloud.telcoautomation.v1.PublicBlueprint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.PublicBlueprint(); + } + + public static com.google.cloud.telcoautomation.v1.PublicBlueprint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicBlueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.PublicBlueprint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java new file mode 100644 index 000000000000..3f6521542df7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.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 PublicBlueprintName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PUBLIC_LUEPRINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/publicBlueprints/{public_lueprint}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String publicLueprint; + + @Deprecated + protected PublicBlueprintName() { + project = null; + location = null; + publicLueprint = null; + } + + private PublicBlueprintName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + publicLueprint = Preconditions.checkNotNull(builder.getPublicLueprint()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublicLueprint() { + return publicLueprint; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PublicBlueprintName of(String project, String location, String publicLueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublicLueprint(publicLueprint) + .build(); + } + + public static String format(String project, String location, String publicLueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublicLueprint(publicLueprint) + .build() + .toString(); + } + + public static PublicBlueprintName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PUBLIC_LUEPRINT.validatedMatch( + formattedString, "PublicBlueprintName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("public_lueprint")); + } + + 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 (PublicBlueprintName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PUBLIC_LUEPRINT.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 (publicLueprint != null) { + fieldMapBuilder.put("public_lueprint", publicLueprint); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PUBLIC_LUEPRINT.instantiate( + "project", project, "location", location, "public_lueprint", publicLueprint); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PublicBlueprintName that = ((PublicBlueprintName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.publicLueprint, that.publicLueprint); + } + 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(publicLueprint); + return h; + } + + /** Builder for projects/{project}/locations/{location}/publicBlueprints/{public_lueprint}. */ + public static class Builder { + private String project; + private String location; + private String publicLueprint; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublicLueprint() { + return publicLueprint; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPublicLueprint(String publicLueprint) { + this.publicLueprint = publicLueprint; + return this; + } + + private Builder(PublicBlueprintName publicBlueprintName) { + this.project = publicBlueprintName.project; + this.location = publicBlueprintName.location; + this.publicLueprint = publicBlueprintName.publicLueprint; + } + + public PublicBlueprintName build() { + return new PublicBlueprintName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintOrBuilder.java new file mode 100644 index 000000000000..e6598d1195ed --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface PublicBlueprintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.PublicBlueprint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + int getDeploymentLevelValue(); + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]
+   * 
+ * + * .google.cloud.telcoautomation.v1.DeploymentLevel deployment_level = 4; + * + * @return The deploymentLevel. + */ + com.google.cloud.telcoautomation.v1.DeploymentLevel getDeploymentLevel(); + + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The sourceProvider. + */ + java.lang.String getSourceProvider(); + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The bytes for sourceProvider. + */ + com.google.protobuf.ByteString getSourceProviderBytes(); + + /** + * + * + *
+   * Output only. Indicates if the deployment created from this blueprint can be
+   * rolled back.
+   * 
+ * + * bool rollback_support = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The rollbackSupport. + */ + boolean getRollbackSupport(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequest.java new file mode 100644 index 000000000000..be4aead5a49c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `RejectBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.RejectBlueprintRequest} + */ +public final class RejectBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.RejectBlueprintRequest) + RejectBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RejectBlueprintRequest.newBuilder() to construct. + private RejectBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RejectBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RejectBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * 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.telcoautomation.v1.RejectBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.RejectBlueprintRequest) 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.telcoautomation.v1.RejectBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest 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.telcoautomation.v1.RejectBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest 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.telcoautomation.v1.RejectBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest 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.telcoautomation.v1.RejectBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest 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.telcoautomation.v1.RejectBlueprintRequest 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 object for `RejectBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.RejectBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.RejectBlueprintRequest) + com.google.cloud.telcoautomation.v1.RejectBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RejectBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RejectBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RejectBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.RejectBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.RejectBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.RejectBlueprintRequest 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.telcoautomation.v1.RejectBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.RejectBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.RejectBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.RejectBlueprintRequest.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. The name of the blueprint being rejected.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being rejected.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being rejected.
+     * 
+ * + * + * 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. The name of the blueprint being rejected.
+     * 
+ * + * + * 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. The name of the blueprint being rejected.
+     * 
+ * + * + * 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.telcoautomation.v1.RejectBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.RejectBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.RejectBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.RejectBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.RejectBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RejectBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.RejectBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..60a8214cb79b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RejectBlueprintRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface RejectBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.RejectBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequest.java new file mode 100644 index 000000000000..b6eb403ff1f9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `RemoveDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.RemoveDeploymentRequest} + */ +public final class RemoveDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.RemoveDeploymentRequest) + RemoveDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveDeploymentRequest.newBuilder() to construct. + private RemoveDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1.RemoveDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest) 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.telcoautomation.v1.RemoveDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest 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.telcoautomation.v1.RemoveDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest 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.telcoautomation.v1.RemoveDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest 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.telcoautomation.v1.RemoveDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest 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.telcoautomation.v1.RemoveDeploymentRequest 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 object for `RemoveDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.RemoveDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.RemoveDeploymentRequest) + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.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.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest 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.telcoautomation.v1.RemoveDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest other) { + if (other == com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest.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. The name of deployment to initiate delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of deployment to initiate delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of deployment to initiate 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. The name of deployment to initiate 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. The name of deployment to initiate 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; + } + + @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.telcoautomation.v1.RemoveDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.RemoveDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.RemoveDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..0b68598ef363 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RemoveDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface RemoveDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.RemoveDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatus.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatus.java new file mode 100644 index 000000000000..bde1e0c9d305 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatus.java @@ -0,0 +1,1972 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Status of a deployment resource.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ResourceStatus} + */ +public final class ResourceStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.ResourceStatus) + ResourceStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceStatus.newBuilder() to construct. + private ResourceStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceStatus() { + name_ = ""; + resourceNamespace_ = ""; + group_ = ""; + version_ = ""; + kind_ = ""; + resourceType_ = 0; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ResourceStatus.class, + com.google.cloud.telcoautomation.v1.ResourceStatus.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceNamespace_ = ""; + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The resourceNamespace. + */ + @java.lang.Override + public java.lang.String getResourceNamespace() { + java.lang.Object ref = resourceNamespace_; + 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(); + resourceNamespace_ = s; + return s; + } + } + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The bytes for resourceNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceNamespaceBytes() { + java.lang.Object ref = resourceNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object group_ = ""; + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = group_; + 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(); + group_ = s; + return s; + } + } + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @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; + } + } + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @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; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 6; + private int resourceType_ = 0; + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceType getResourceType() { + com.google.cloud.telcoautomation.v1.ResourceType result = + com.google.cloud.telcoautomation.v1.ResourceType.forNumber(resourceType_); + return result == null ? com.google.cloud.telcoautomation.v1.ResourceType.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 7; + private int status_ = 0; + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Status getStatus() { + com.google.cloud.telcoautomation.v1.Status result = + com.google.cloud.telcoautomation.v1.Status.forNumber(status_); + return result == null ? com.google.cloud.telcoautomation.v1.Status.UNRECOGNIZED : result; + } + + public static final int NF_DEPLOY_STATUS_FIELD_NUMBER = 8; + private com.google.cloud.telcoautomation.v1.NFDeployStatus nfDeployStatus_; + /** + * + * + *
+   * Output only. Detailed status of NFDeploy.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nfDeployStatus field is set. + */ + @java.lang.Override + public boolean hasNfDeployStatus() { + return nfDeployStatus_ != null; + } + /** + * + * + *
+   * Output only. Detailed status of NFDeploy.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nfDeployStatus. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeployStatus getNfDeployStatus() { + return nfDeployStatus_ == null + ? com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance() + : nfDeployStatus_; + } + /** + * + * + *
+   * Output only. Detailed status of NFDeploy.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder getNfDeployStatusOrBuilder() { + return nfDeployStatus_ == null + ? com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance() + : nfDeployStatus_; + } + + 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(resourceNamespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceNamespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, group_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kind_); + } + if (resourceType_ + != com.google.cloud.telcoautomation.v1.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, resourceType_); + } + if (status_ != com.google.cloud.telcoautomation.v1.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(7, status_); + } + if (nfDeployStatus_ != null) { + output.writeMessage(8, getNfDeployStatus()); + } + 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(resourceNamespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceNamespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, group_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kind_); + } + if (resourceType_ + != com.google.cloud.telcoautomation.v1.ResourceType.RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, resourceType_); + } + if (status_ != com.google.cloud.telcoautomation.v1.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); + } + if (nfDeployStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNfDeployStatus()); + } + 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.telcoautomation.v1.ResourceStatus)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.ResourceStatus other = + (com.google.cloud.telcoautomation.v1.ResourceStatus) obj; + + if (!getName().equals(other.getName())) return false; + if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; + if (!getGroup().equals(other.getGroup())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getKind().equals(other.getKind())) return false; + if (resourceType_ != other.resourceType_) return false; + if (status_ != other.status_) return false; + if (hasNfDeployStatus() != other.hasNfDeployStatus()) return false; + if (hasNfDeployStatus()) { + if (!getNfDeployStatus().equals(other.getNfDeployStatus())) 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) + RESOURCE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getResourceNamespace().hashCode(); + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasNfDeployStatus()) { + hash = (37 * hash) + NF_DEPLOY_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getNfDeployStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus 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.telcoautomation.v1.ResourceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus 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.telcoautomation.v1.ResourceStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus 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.telcoautomation.v1.ResourceStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus 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.telcoautomation.v1.ResourceStatus 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; + } + /** + * + * + *
+   * Status of a deployment resource.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.ResourceStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.ResourceStatus) + com.google.cloud.telcoautomation.v1.ResourceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.ResourceStatus.class, + com.google.cloud.telcoautomation.v1.ResourceStatus.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.ResourceStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + resourceNamespace_ = ""; + group_ = ""; + version_ = ""; + kind_ = ""; + resourceType_ = 0; + status_ = 0; + nfDeployStatus_ = null; + if (nfDeployStatusBuilder_ != null) { + nfDeployStatusBuilder_.dispose(); + nfDeployStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_ResourceStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceStatus getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.ResourceStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceStatus build() { + com.google.cloud.telcoautomation.v1.ResourceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceStatus buildPartial() { + com.google.cloud.telcoautomation.v1.ResourceStatus result = + new com.google.cloud.telcoautomation.v1.ResourceStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.ResourceStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceNamespace_ = resourceNamespace_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.group_ = group_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.nfDeployStatus_ = + nfDeployStatusBuilder_ == null ? nfDeployStatus_ : nfDeployStatusBuilder_.build(); + } + } + + @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.telcoautomation.v1.ResourceStatus) { + return mergeFrom((com.google.cloud.telcoautomation.v1.ResourceStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.ResourceStatus other) { + if (other == com.google.cloud.telcoautomation.v1.ResourceStatus.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResourceNamespace().isEmpty()) { + resourceNamespace_ = other.resourceNamespace_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGroup().isEmpty()) { + group_ = other.group_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasNfDeployStatus()) { + mergeNfDeployStatus(other.getNfDeployStatus()); + } + 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: + { + resourceNamespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + group_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage(getNfDeployStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + 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_ = ""; + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resourceNamespace_ = ""; + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @return The resourceNamespace. + */ + public java.lang.String getResourceNamespace() { + java.lang.Object ref = resourceNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @return The bytes for resourceNamespace. + */ + public com.google.protobuf.ByteString getResourceNamespaceBytes() { + java.lang.Object ref = resourceNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @param value The resourceNamespace to set. + * @return This builder for chaining. + */ + public Builder setResourceNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceNamespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @return This builder for chaining. + */ + public Builder clearResourceNamespace() { + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @param value The bytes for resourceNamespace to set. + * @return This builder for chaining. + */ + public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object group_ = ""; + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @return The bytes for group. + */ + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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; + } + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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; + } + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.ResourceType getResourceType() { + com.google.cloud.telcoautomation.v1.ResourceType result = + com.google.cloud.telcoautomation.v1.ResourceType.forNumber(resourceType_); + return result == null + ? com.google.cloud.telcoautomation.v1.ResourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.cloud.telcoautomation.v1.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000020); + resourceType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Status getStatus() { + com.google.cloud.telcoautomation.v1.Status result = + com.google.cloud.telcoautomation.v1.Status.forNumber(status_); + return result == null ? com.google.cloud.telcoautomation.v1.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.telcoautomation.v1.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + status_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.NFDeployStatus nfDeployStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.NFDeployStatus, + com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder, + com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder> + nfDeployStatusBuilder_; + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nfDeployStatus field is set. + */ + public boolean hasNfDeployStatus() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nfDeployStatus. + */ + public com.google.cloud.telcoautomation.v1.NFDeployStatus getNfDeployStatus() { + if (nfDeployStatusBuilder_ == null) { + return nfDeployStatus_ == null + ? com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance() + : nfDeployStatus_; + } else { + return nfDeployStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNfDeployStatus(com.google.cloud.telcoautomation.v1.NFDeployStatus value) { + if (nfDeployStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nfDeployStatus_ = value; + } else { + nfDeployStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNfDeployStatus( + com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder builderForValue) { + if (nfDeployStatusBuilder_ == null) { + nfDeployStatus_ = builderForValue.build(); + } else { + nfDeployStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNfDeployStatus(com.google.cloud.telcoautomation.v1.NFDeployStatus value) { + if (nfDeployStatusBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && nfDeployStatus_ != null + && nfDeployStatus_ + != com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance()) { + getNfDeployStatusBuilder().mergeFrom(value); + } else { + nfDeployStatus_ = value; + } + } else { + nfDeployStatusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNfDeployStatus() { + bitField0_ = (bitField0_ & ~0x00000080); + nfDeployStatus_ = null; + if (nfDeployStatusBuilder_ != null) { + nfDeployStatusBuilder_.dispose(); + nfDeployStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder getNfDeployStatusBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getNfDeployStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder + getNfDeployStatusOrBuilder() { + if (nfDeployStatusBuilder_ != null) { + return nfDeployStatusBuilder_.getMessageOrBuilder(); + } else { + return nfDeployStatus_ == null + ? com.google.cloud.telcoautomation.v1.NFDeployStatus.getDefaultInstance() + : nfDeployStatus_; + } + } + /** + * + * + *
+     * Output only. Detailed status of NFDeploy.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.NFDeployStatus, + com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder, + com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder> + getNfDeployStatusFieldBuilder() { + if (nfDeployStatusBuilder_ == null) { + nfDeployStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.NFDeployStatus, + com.google.cloud.telcoautomation.v1.NFDeployStatus.Builder, + com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder>( + getNfDeployStatus(), getParentForChildren(), isClean()); + nfDeployStatus_ = null; + } + return nfDeployStatusBuilder_; + } + + @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.telcoautomation.v1.ResourceStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.ResourceStatus) + private static final com.google.cloud.telcoautomation.v1.ResourceStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.ResourceStatus(); + } + + public static com.google.cloud.telcoautomation.v1.ResourceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.ResourceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatusOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatusOrBuilder.java new file mode 100644 index 000000000000..35e7ee70cb4e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceStatusOrBuilder.java @@ -0,0 +1,249 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface ResourceStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.ResourceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The resourceNamespace. + */ + java.lang.String getResourceNamespace(); + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The bytes for resourceNamespace. + */ + com.google.protobuf.ByteString getResourceNamespaceBytes(); + + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The group. + */ + java.lang.String getGroup(); + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The bytes for group. + */ + com.google.protobuf.ByteString getGroupBytes(); + + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @return The kind. + */ + java.lang.String getKind(); + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + com.google.cloud.telcoautomation.v1.ResourceType getResourceType(); + + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.cloud.telcoautomation.v1.Status getStatus(); + + /** + * + * + *
+   * Output only. Detailed status of NFDeploy.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nfDeployStatus field is set. + */ + boolean hasNfDeployStatus(); + /** + * + * + *
+   * Output only. Detailed status of NFDeploy.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nfDeployStatus. + */ + com.google.cloud.telcoautomation.v1.NFDeployStatus getNfDeployStatus(); + /** + * + * + *
+   * Output only. Detailed status of NFDeploy.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.NFDeployStatus nf_deploy_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.NFDeployStatusOrBuilder getNfDeployStatusOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceType.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceType.java new file mode 100644 index 000000000000..c9b5a7491671 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/ResourceType.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Represent type of CR.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.ResourceType} + */ +public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified resource type.
+   * 
+ * + * RESOURCE_TYPE_UNSPECIFIED = 0; + */ + RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * User specified NF Deploy CR.
+   * 
+ * + * NF_DEPLOY_RESOURCE = 1; + */ + NF_DEPLOY_RESOURCE(1), + /** + * + * + *
+   * CRs that are part of a blueprint.
+   * 
+ * + * DEPLOYMENT_RESOURCE = 2; + */ + DEPLOYMENT_RESOURCE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified resource type.
+   * 
+ * + * RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * User specified NF Deploy CR.
+   * 
+ * + * NF_DEPLOY_RESOURCE = 1; + */ + public static final int NF_DEPLOY_RESOURCE_VALUE = 1; + /** + * + * + *
+   * CRs that are part of a blueprint.
+   * 
+ * + * DEPLOYMENT_RESOURCE = 2; + */ + public static final int DEPLOYMENT_RESOURCE_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 ResourceType 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 ResourceType forNumber(int value) { + switch (value) { + case 0: + return RESOURCE_TYPE_UNSPECIFIED; + case 1: + return NF_DEPLOY_RESOURCE; + case 2: + return DEPLOYMENT_RESOURCE; + 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 ResourceType findValueByNumber(int number) { + return ResourceType.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.telcoautomation.v1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType 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 ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.ResourceType) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequest.java new file mode 100644 index 000000000000..39b6fb339b7a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequest.java @@ -0,0 +1,825 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `RollbackDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.RollbackDeploymentRequest} + */ +public final class RollbackDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.RollbackDeploymentRequest) + RollbackDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollbackDeploymentRequest.newBuilder() to construct. + private RollbackDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollbackDeploymentRequest() { + name_ = ""; + revisionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollbackDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the deployment.
+   * 
+ * + * + * 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 deployment.
+   * 
+ * + * + * 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 REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = 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(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + 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.telcoautomation.v1.RollbackDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) 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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest 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.telcoautomation.v1.RollbackDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest 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.telcoautomation.v1.RollbackDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest 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.telcoautomation.v1.RollbackDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest 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.telcoautomation.v1.RollbackDeploymentRequest 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 object for `RollbackDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.RollbackDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.RollbackDeploymentRequest) + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + } + + @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.telcoautomation.v1.RollbackDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + 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: + { + revisionId_ = 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 revisionId_ = ""; + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = 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.telcoautomation.v1.RollbackDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.RollbackDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.RollbackDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..eb50541f1e91 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/RollbackDeploymentRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface RollbackDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.RollbackDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequest.java new file mode 100644 index 000000000000..d07a25518561 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequest.java @@ -0,0 +1,1175 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `SearchBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest} + */ +public final class SearchBlueprintRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) + SearchBlueprintRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchBlueprintRevisionsRequest.newBuilder() to construct. + private SearchBlueprintRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchBlueprintRevisionsRequest() { + parent_ = ""; + query_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchBlueprintRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name={name}"            : Lists all revisions of blueprint with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name={name}"            : Lists all revisions of blueprint with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of blueprints revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + 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.telcoautomation.v1.SearchBlueprintRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest other = + (com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest 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.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest 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.telcoautomation.v1.SearchBlueprintRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + 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.telcoautomation.v1.SearchBlueprintRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest 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.telcoautomation.v1.SearchBlueprintRevisionsRequest 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 object for `SearchBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + query_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest build() { + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest result = + new com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1.SearchBlueprintRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 query_ = ""; + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name={name}"            : Lists all revisions of blueprint with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name={name}"            : Lists all revisions of blueprint with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name={name}"            : Lists all revisions of blueprint with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name={name}"            : Lists all revisions of blueprint with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name={name}"            : Lists all revisions of blueprint with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of blueprints revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1.SearchBlueprintRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlueprintRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.SearchBlueprintRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..75b4c2dbaadc --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface SearchBlueprintRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name={name}"            : Lists all revisions of blueprint with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name={name}"            : Lists all revisions of blueprint with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of blueprint with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional. The maximum number of blueprints revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponse.java new file mode 100644 index 000000000000..022324624315 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `SearchBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse} + */ +public final class SearchBlueprintRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse) + SearchBlueprintRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchBlueprintRevisionsResponse.newBuilder() to construct. + private SearchBlueprintRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchBlueprintRevisionsResponse() { + blueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchBlueprintRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse.Builder.class); + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List blueprints_; + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder(int index) { + return blueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.SearchBlueprintRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse other = + (com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse) obj; + + if (!getBlueprintsList().equals(other.getBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse 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.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse 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.telcoautomation.v1.SearchBlueprintRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + 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.telcoautomation.v1.SearchBlueprintRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse 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.telcoautomation.v1.SearchBlueprintRevisionsResponse 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 object for `SearchBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse) + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + } else { + blueprints_ = null; + blueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse build() { + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse result = + new com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse result) { + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse 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.telcoautomation.v1.SearchBlueprintRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + .getDefaultInstance()) return this; + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlueprintsFieldBuilder() + : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.Blueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1.Blueprint.parser(), extensionRegistry); + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(m); + } else { + blueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List blueprints_ = + java.util.Collections.emptyList(); + + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = + new java.util.ArrayList(blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + blueprintsBuilder_; + + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder setBlueprints(int index, com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(int index, com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder getBlueprintsBuilder(int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder addBlueprintsBuilder(int index) { + return getBlueprintsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder>( + blueprints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.SearchBlueprintRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlueprintRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.SearchBlueprintRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..2ccfbdbf65b3 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchBlueprintRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface SearchBlueprintRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + java.util.List getBlueprintsList(); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.Blueprint getBlueprints(int index); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + int getBlueprintsCount(); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequest.java new file mode 100644 index 000000000000..6ff00a028223 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequest.java @@ -0,0 +1,1182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `SearchDeploymentRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest} + */ +public final class SearchDeploymentRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) + SearchDeploymentRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDeploymentRevisionsRequest.newBuilder() to construct. + private SearchDeploymentRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDeploymentRevisionsRequest() { + parent_ = ""; + query_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDeploymentRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name={name}"            : Lists all revisions of deployment with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of deployment with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name={name}"            : Lists all revisions of deployment with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of deployment with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of deployment revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + 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.telcoautomation.v1.SearchDeploymentRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest other = + (com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest 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.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest 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.telcoautomation.v1.SearchDeploymentRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + 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.telcoautomation.v1.SearchDeploymentRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest 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.telcoautomation.v1.SearchDeploymentRevisionsRequest 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 object for `SearchDeploymentRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + query_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest build() { + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest buildPartial() { + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest result = + new com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1.SearchDeploymentRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 query_ = ""; + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name={name}"            : Lists all revisions of deployment with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of deployment with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name={name}"            : Lists all revisions of deployment with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of deployment with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name={name}"            : Lists all revisions of deployment with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of deployment with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name={name}"            : Lists all revisions of deployment with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of deployment with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name={name}"            : Lists all revisions of deployment with name
+     * {name}.
+     * 4. "name={name} latest=true": Lists latest revision of deployment with name
+     * {name}
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of deployment revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of deployment revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of deployment revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1.SearchDeploymentRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDeploymentRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.SearchDeploymentRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..9b145a82c51b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface SearchDeploymentRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name={name}"            : Lists all revisions of deployment with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of deployment with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name={name}"            : Lists all revisions of deployment with name
+   * {name}.
+   * 4. "name={name} latest=true": Lists latest revision of deployment with name
+   * {name}
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional. The maximum number of deployment revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponse.java new file mode 100644 index 000000000000..e5a5b6b82506 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponse.java @@ -0,0 +1,1141 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Response object for `SearchDeploymentRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse} + */ +public final class SearchDeploymentRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse) + SearchDeploymentRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDeploymentRevisionsResponse.newBuilder() to construct. + private SearchDeploymentRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDeploymentRevisionsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDeploymentRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1.SearchDeploymentRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse other = + (com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse 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.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse 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.telcoautomation.v1.SearchDeploymentRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + 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.telcoautomation.v1.SearchDeploymentRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse 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.telcoautomation.v1.SearchDeploymentRevisionsResponse 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 object for `SearchDeploymentRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse) + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse build() { + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse buildPartial() { + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse result = + new com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse 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.telcoautomation.v1.SearchDeploymentRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + .getDefaultInstance()) return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1.Deployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1.Deployment.parser(), extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList(deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder setDeployments(int index, com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments(int index, com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder getDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder addDeploymentsBuilder(int index) { + return getDeploymentsFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1.SearchDeploymentRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDeploymentRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.SearchDeploymentRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..606b711f9869 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SearchDeploymentRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface SearchDeploymentRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1.Deployment getDeployments(int index); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersion.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersion.java new file mode 100644 index 000000000000..430c39c163cc --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersion.java @@ -0,0 +1,988 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * SiteVersion Hydration is targeting.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SiteVersion} + */ +public final class SiteVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.SiteVersion) + SiteVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SiteVersion.newBuilder() to construct. + private SiteVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SiteVersion() { + nfVendor_ = ""; + nfType_ = ""; + nfVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SiteVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SiteVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SiteVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SiteVersion.class, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder.class); + } + + public static final int NF_VENDOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object nfVendor_ = ""; + /** + * + * + *
+   * Output only. NF vendor.
+   * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfVendor. + */ + @java.lang.Override + public java.lang.String getNfVendor() { + java.lang.Object ref = nfVendor_; + 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(); + nfVendor_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. NF vendor.
+   * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfVendor. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNfVendorBytes() { + java.lang.Object ref = nfVendor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nfVendor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NF_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nfType_ = ""; + /** + * + * + *
+   * Output only. NF vendor type.
+   * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfType. + */ + @java.lang.Override + public java.lang.String getNfType() { + java.lang.Object ref = nfType_; + 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(); + nfType_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. NF vendor type.
+   * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNfTypeBytes() { + java.lang.Object ref = nfType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nfType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NF_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object nfVersion_ = ""; + /** + * + * + *
+   * Output only. NF version.
+   * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfVersion. + */ + @java.lang.Override + public java.lang.String getNfVersion() { + java.lang.Object ref = nfVersion_; + 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(); + nfVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. NF version.
+   * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNfVersionBytes() { + java.lang.Object ref = nfVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nfVersion_ = 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(nfVendor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nfVendor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nfType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nfVersion_); + } + 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(nfVendor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nfVendor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nfType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nfVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nfVersion_); + } + 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.telcoautomation.v1.SiteVersion)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.SiteVersion other = + (com.google.cloud.telcoautomation.v1.SiteVersion) obj; + + if (!getNfVendor().equals(other.getNfVendor())) return false; + if (!getNfType().equals(other.getNfType())) return false; + if (!getNfVersion().equals(other.getNfVersion())) 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) + NF_VENDOR_FIELD_NUMBER; + hash = (53 * hash) + getNfVendor().hashCode(); + hash = (37 * hash) + NF_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNfType().hashCode(); + hash = (37 * hash) + NF_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getNfVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion 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.telcoautomation.v1.SiteVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion 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.telcoautomation.v1.SiteVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion 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.telcoautomation.v1.SiteVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion 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.telcoautomation.v1.SiteVersion 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; + } + /** + * + * + *
+   * SiteVersion Hydration is targeting.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.SiteVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.SiteVersion) + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SiteVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SiteVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.SiteVersion.class, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.SiteVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nfVendor_ = ""; + nfType_ = ""; + nfVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_SiteVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersion getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersion build() { + com.google.cloud.telcoautomation.v1.SiteVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersion buildPartial() { + com.google.cloud.telcoautomation.v1.SiteVersion result = + new com.google.cloud.telcoautomation.v1.SiteVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.SiteVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nfVendor_ = nfVendor_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nfType_ = nfType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nfVersion_ = nfVersion_; + } + } + + @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.telcoautomation.v1.SiteVersion) { + return mergeFrom((com.google.cloud.telcoautomation.v1.SiteVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.SiteVersion other) { + if (other == com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance()) + return this; + if (!other.getNfVendor().isEmpty()) { + nfVendor_ = other.nfVendor_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNfType().isEmpty()) { + nfType_ = other.nfType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNfVersion().isEmpty()) { + nfVersion_ = other.nfVersion_; + 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 10: + { + nfVendor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + nfType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + nfVersion_ = 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 java.lang.Object nfVendor_ = ""; + /** + * + * + *
+     * Output only. NF vendor.
+     * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfVendor. + */ + public java.lang.String getNfVendor() { + java.lang.Object ref = nfVendor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nfVendor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. NF vendor.
+     * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfVendor. + */ + public com.google.protobuf.ByteString getNfVendorBytes() { + java.lang.Object ref = nfVendor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nfVendor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. NF vendor.
+     * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nfVendor to set. + * @return This builder for chaining. + */ + public Builder setNfVendor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nfVendor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. NF vendor.
+     * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNfVendor() { + nfVendor_ = getDefaultInstance().getNfVendor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. NF vendor.
+     * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nfVendor to set. + * @return This builder for chaining. + */ + public Builder setNfVendorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfVendor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object nfType_ = ""; + /** + * + * + *
+     * Output only. NF vendor type.
+     * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfType. + */ + public java.lang.String getNfType() { + java.lang.Object ref = nfType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nfType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. NF vendor type.
+     * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfType. + */ + public com.google.protobuf.ByteString getNfTypeBytes() { + java.lang.Object ref = nfType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nfType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. NF vendor type.
+     * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nfType to set. + * @return This builder for chaining. + */ + public Builder setNfType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nfType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. NF vendor type.
+     * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNfType() { + nfType_ = getDefaultInstance().getNfType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. NF vendor type.
+     * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nfType to set. + * @return This builder for chaining. + */ + public Builder setNfTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object nfVersion_ = ""; + /** + * + * + *
+     * Output only. NF version.
+     * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfVersion. + */ + public java.lang.String getNfVersion() { + java.lang.Object ref = nfVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nfVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. NF version.
+     * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfVersion. + */ + public com.google.protobuf.ByteString getNfVersionBytes() { + java.lang.Object ref = nfVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nfVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. NF version.
+     * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nfVersion to set. + * @return This builder for chaining. + */ + public Builder setNfVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nfVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. NF version.
+     * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNfVersion() { + nfVersion_ = getDefaultInstance().getNfVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. NF version.
+     * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nfVersion to set. + * @return This builder for chaining. + */ + public Builder setNfVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nfVersion_ = 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.telcoautomation.v1.SiteVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.SiteVersion) + private static final com.google.cloud.telcoautomation.v1.SiteVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.SiteVersion(); + } + + public static com.google.cloud.telcoautomation.v1.SiteVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SiteVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.SiteVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersionOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersionOrBuilder.java new file mode 100644 index 000000000000..cd68679960f4 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/SiteVersionOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface SiteVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.SiteVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. NF vendor.
+   * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfVendor. + */ + java.lang.String getNfVendor(); + /** + * + * + *
+   * Output only. NF vendor.
+   * 
+ * + * string nf_vendor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfVendor. + */ + com.google.protobuf.ByteString getNfVendorBytes(); + + /** + * + * + *
+   * Output only. NF vendor type.
+   * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfType. + */ + java.lang.String getNfType(); + /** + * + * + *
+   * Output only. NF vendor type.
+   * 
+ * + * string nf_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfType. + */ + com.google.protobuf.ByteString getNfTypeBytes(); + + /** + * + * + *
+   * Output only. NF version.
+   * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nfVersion. + */ + java.lang.String getNfVersion(); + /** + * + * + *
+   * Output only. NF version.
+   * 
+ * + * string nf_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nfVersion. + */ + com.google.protobuf.ByteString getNfVersionBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfig.java new file mode 100644 index 000000000000..bebac4d9c5e1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfig.java @@ -0,0 +1,2169 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Configuration of the standard (GKE) cluster management.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.StandardManagementConfig} + */ +public final class StandardManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.StandardManagementConfig) + StandardManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StandardManagementConfig.newBuilder() to construct. + private StandardManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StandardManagementConfig() { + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StandardManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.StandardManagementConfig.class, + com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 SUBNET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnet_ = ""; + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + 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(); + subnet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+   * Optional. The /28 network that the masters will use. It should be free
+   * within the network.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + 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(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The /28 network that the masters will use. It should be free
+   * within the network.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_CIDR_BLOCK_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + 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(); + clusterCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_CIDR_BLOCK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + 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(); + servicesCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAMED_RANGE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + @java.lang.Override + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + 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(); + clusterNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_NAMED_RANGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + @java.lang.Override + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + 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(); + servicesNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(8, getMasterAuthorizedNetworksConfig()); + } + 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(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMasterAuthorizedNetworksConfig()); + } + 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.telcoautomation.v1.StandardManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.StandardManagementConfig other = + (com.google.cloud.telcoautomation.v1.StandardManagementConfig) obj; + + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (!getClusterCidrBlock().equals(other.getClusterCidrBlock())) return false; + if (!getServicesCidrBlock().equals(other.getServicesCidrBlock())) return false; + if (!getClusterNamedRange().equals(other.getClusterNamedRange())) return false; + if (!getServicesNamedRange().equals(other.getServicesNamedRange())) return false; + if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) + return false; + if (hasMasterAuthorizedNetworksConfig()) { + if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) + 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterCidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesCidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getClusterNamedRange().hashCode(); + hash = (37 * hash) + SERVICES_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getServicesNamedRange().hashCode(); + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig 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.telcoautomation.v1.StandardManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig 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.telcoautomation.v1.StandardManagementConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig 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.telcoautomation.v1.StandardManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig 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.telcoautomation.v1.StandardManagementConfig 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; + } + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.StandardManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.StandardManagementConfig) + com.google.cloud.telcoautomation.v1.StandardManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.StandardManagementConfig.class, + com.google.cloud.telcoautomation.v1.StandardManagementConfig.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.StandardManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfig + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfig build() { + com.google.cloud.telcoautomation.v1.StandardManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.StandardManagementConfig buildPartial() { + com.google.cloud.telcoautomation.v1.StandardManagementConfig result = + new com.google.cloud.telcoautomation.v1.StandardManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.StandardManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnet_ = subnet_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterCidrBlock_ = clusterCidrBlock_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.servicesCidrBlock_ = servicesCidrBlock_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clusterNamedRange_ = clusterNamedRange_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.servicesNamedRange_ = servicesNamedRange_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.masterAuthorizedNetworksConfig_ = + masterAuthorizedNetworksConfigBuilder_ == null + ? masterAuthorizedNetworksConfig_ + : masterAuthorizedNetworksConfigBuilder_.build(); + } + } + + @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.telcoautomation.v1.StandardManagementConfig) { + return mergeFrom((com.google.cloud.telcoautomation.v1.StandardManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.StandardManagementConfig other) { + if (other + == com.google.cloud.telcoautomation.v1.StandardManagementConfig.getDefaultInstance()) + return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnet().isEmpty()) { + subnet_ = other.subnet_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterCidrBlock().isEmpty()) { + clusterCidrBlock_ = other.clusterCidrBlock_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getServicesCidrBlock().isEmpty()) { + servicesCidrBlock_ = other.servicesCidrBlock_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getClusterNamedRange().isEmpty()) { + clusterNamedRange_ = other.clusterNamedRange_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getServicesNamedRange().isEmpty()) { + servicesNamedRange_ = other.servicesNamedRange_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + 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: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + clusterCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + servicesCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + clusterNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + servicesNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + 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 network_ = ""; + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnet_ = ""; + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + subnet_ = getDefaultInstance().getSubnet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * Optional. The /28 network that the masters will use. It should be free
+     * within the network.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use. It should be free
+     * within the network.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use. It should be free
+     * within the network.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use. It should be free
+     * within the network.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use. It should be free
+     * within the network.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterCidrBlock() { + clusterCidrBlock_ = getDefaultInstance().getClusterCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesCidrBlock() { + servicesCidrBlock_ = getDefaultInstance().getServicesCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterNamedRange() { + clusterNamedRange_ = getDefaultInstance().getClusterNamedRange(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesNamedRange() { + servicesNamedRange_ = getDefaultInstance().getServicesNamedRange(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder> + masterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder + builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && masterAuthorizedNetworksConfig_ != null + && masterAuthorizedNetworksConfig_ + != com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance()) { + getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + masterAuthorizedNetworksConfig_ = value; + } + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + @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.telcoautomation.v1.StandardManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.StandardManagementConfig) + private static final com.google.cloud.telcoautomation.v1.StandardManagementConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.StandardManagementConfig(); + } + + public static com.google.cloud.telcoautomation.v1.StandardManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StandardManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.StandardManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfigOrBuilder.java new file mode 100644 index 000000000000..57eb2a78ff19 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/StandardManagementConfigOrBuilder.java @@ -0,0 +1,281 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface StandardManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.StandardManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + + /** + * + * + *
+   * Optional. The /28 network that the masters will use. It should be free
+   * within the network.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * Optional. The /28 network that the masters will use. It should be free
+   * within the network.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + java.lang.String getClusterCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + com.google.protobuf.ByteString getClusterCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + java.lang.String getServicesCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + com.google.protobuf.ByteString getServicesCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + java.lang.String getClusterNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + com.google.protobuf.ByteString getClusterNamedRangeBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + java.lang.String getServicesNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + com.google.protobuf.ByteString getServicesNamedRangeBytes(); + + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Status.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Status.java new file mode 100644 index 000000000000..64f5e231e00f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/Status.java @@ -0,0 +1,266 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Status of an entity (resource, deployment).
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1.Status} + */ +public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown state.
+   * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+   * Under progress.
+   * 
+ * + * STATUS_IN_PROGRESS = 1; + */ + STATUS_IN_PROGRESS(1), + /** + * + * + *
+   * Running and ready to serve traffic.
+   * 
+ * + * STATUS_ACTIVE = 2; + */ + STATUS_ACTIVE(2), + /** + * + * + *
+   * Failed or stalled.
+   * 
+ * + * STATUS_FAILED = 3; + */ + STATUS_FAILED(3), + /** + * + * + *
+   * Delete in progress.
+   * 
+ * + * STATUS_DELETING = 4; + */ + STATUS_DELETING(4), + /** + * + * + *
+   * Deleted deployment.
+   * 
+ * + * STATUS_DELETED = 5; + */ + STATUS_DELETED(5), + /** + * + * + *
+   * NFDeploy specific status. Peering in progress.
+   * 
+ * + * STATUS_PEERING = 10; + */ + STATUS_PEERING(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown state.
+   * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Under progress.
+   * 
+ * + * STATUS_IN_PROGRESS = 1; + */ + public static final int STATUS_IN_PROGRESS_VALUE = 1; + /** + * + * + *
+   * Running and ready to serve traffic.
+   * 
+ * + * STATUS_ACTIVE = 2; + */ + public static final int STATUS_ACTIVE_VALUE = 2; + /** + * + * + *
+   * Failed or stalled.
+   * 
+ * + * STATUS_FAILED = 3; + */ + public static final int STATUS_FAILED_VALUE = 3; + /** + * + * + *
+   * Delete in progress.
+   * 
+ * + * STATUS_DELETING = 4; + */ + public static final int STATUS_DELETING_VALUE = 4; + /** + * + * + *
+   * Deleted deployment.
+   * 
+ * + * STATUS_DELETED = 5; + */ + public static final int STATUS_DELETED_VALUE = 5; + /** + * + * + *
+   * NFDeploy specific status. Peering in progress.
+   * 
+ * + * STATUS_PEERING = 10; + */ + public static final int STATUS_PEERING_VALUE = 10; + + 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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return STATUS_IN_PROGRESS; + case 2: + return STATUS_ACTIVE; + case 3: + return STATUS_FAILED; + case 4: + return STATUS_DELETING; + case 5: + return STATUS_DELETED; + case 10: + return STATUS_PEERING; + 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 Status findValueByNumber(int number) { + return Status.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.telcoautomation.v1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1.Status) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoautomationProto.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoautomationProto.java new file mode 100644 index 000000000000..4fcc47e60a08 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/TelcoautomationProto.java @@ -0,0 +1,1604 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public final class TelcoautomationProto { + private TelcoautomationProto() {} + + 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_telcoautomation_v1_OrchestrationCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_Blueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_Blueprint_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_Blueprint_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_Deployment_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_Deployment_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_File_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_File_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_ResourceStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_ResourceStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_HydrationStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_HydrationStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_SiteVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_SiteVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/telcoautomation/v1/telcoa" + + "utomation.proto\022\037google.cloud.telcoautom" + + "ation.v1\032\034google/api/annotations.proto\032\027" + + "google/api/client.proto\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\032#google/longrunning/operations.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"\266\005\n\024OrchestrationCluste" + + "r\022\014\n\004name\030\001 \001(\t\022L\n\021management_config\030\005 \001" + + "(\01321.google.cloud.telcoautomation.v1.Man" + + "agementConfig\0225\n\013create_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\004\342A\001\003\0225\n\013update_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342" + + "A\001\003\022Q\n\006labels\030\004 \003(\0132A.google.cloud.telco" + + "automation.v1.OrchestrationCluster.Label" + + "sEntry\022\031\n\013tna_version\030\006 \001(\tB\004\342A\001\003\022P\n\005sta" + + "te\030\007 \001(\0162;.google.cloud.telcoautomation." + + "v1.OrchestrationCluster.StateB\004\342A\001\003\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"R\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + + "EATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006FA" + + "ILED\020\004:\220\001\352A\214\001\n3telcoautomation.googleapi" + + "s.com/OrchestrationCluster\022Uprojects/{pr" + + "oject}/locations/{location}/orchestratio" + + "nClusters/{orchestration_cluster}\"\302\006\n\007Ed" + + "geSlm\022\014\n\004name\030\001 \001(\t\022[\n\025orchestration_clu" + + "ster\030\005 \001(\tB<\342A\001\005\372A5\n3telcoautomation.goo" + + "gleapis.com/OrchestrationCluster\0225\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\022J\n\006labels\030\004 \003(\01324" + + ".google.cloud.telcoautomation.v1.EdgeSlm" + + ".LabelsEntryB\004\342A\001\001\022\031\n\013tna_version\030\006 \001(\tB" + + "\004\342A\001\003\022C\n\005state\030\007 \001(\0162..google.cloud.telc" + + "oautomation.v1.EdgeSlm.StateB\004\342A\001\003\022a\n\025wo" + + "rkload_cluster_type\030\010 \001(\0162<.google.cloud" + + ".telcoautomation.v1.EdgeSlm.WorkloadClus" + + "terTypeB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"R\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014" + + "\n\010DELETING\020\003\022\n\n\006FAILED\020\004\"O\n\023WorkloadClus" + + "terType\022%\n!WORKLOAD_CLUSTER_TYPE_UNSPECI" + + "FIED\020\000\022\010\n\004GDCE\020\001\022\007\n\003GKE\020\002:{\352Ax\n&telcoaut" + + "omation.googleapis.com/EdgeSlm\022;projects" + + "/{project}/locations/{location}/edgeSlms" + + "/{edge_slm}*\010edgeSlms2\007edgeSlm\"\352\007\n\tBluep" + + "rint\022\014\n\004name\030\001 \001(\t\022\032\n\013revision_id\030\002 \001(\tB" + + "\005\342A\002\005\003\022\037\n\020source_blueprint\030\003 \001(\tB\005\342A\002\002\005\022" + + ">\n\024revision_create_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\003\022V\n\016approval_stat" + + "e\030\006 \001(\01628.google.cloud.telcoautomation.v" + + "1.Blueprint.ApprovalStateB\004\342A\001\003\022\032\n\014displ" + + "ay_name\030\007 \001(\tB\004\342A\001\001\022\030\n\nrepository\030\010 \001(\tB" + + "\004\342A\001\003\022:\n\005files\030\t \003(\0132%.google.cloud.telc" + + "oautomation.v1.FileB\004\342A\001\001\022L\n\006labels\030\n \003(" + + "\01326.google.cloud.telcoautomation.v1.Blue" + + "print.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225" + + "\n\013update_time\030\014 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\022\035\n\017source_provider\030\r \001(\tB\004" + + "\342A\001\003\022P\n\020deployment_level\030\016 \001(\01620.google." + + "cloud.telcoautomation.v1.DeploymentLevel" + + "B\004\342A\001\003\022\036\n\020rollback_support\030\017 \001(\010B\004\342A\001\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"V\n\rApprovalState\022\036\n\032APPROVAL_STATE" + + "_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010PROPOSED\020\002\022" + + "\014\n\010APPROVED\020\003:\263\001\352A\257\001\n(telcoautomation.go" + + "ogleapis.com/Blueprint\022lprojects/{projec" + + "t}/locations/{location}/orchestrationClu" + + "sters/{orchestration_cluster}/blueprints" + + "/{blueprint}*\nblueprints2\tblueprint\"\365\002\n\017" + + "PublicBlueprint\022\014\n\004name\030\001 \001(\t\022\024\n\014display" + + "_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022J\n\020depl" + + "oyment_level\030\004 \001(\01620.google.cloud.telcoa" + + "utomation.v1.DeploymentLevel\022\027\n\017source_p" + + "rovider\030\005 \001(\t\022\036\n\020rollback_support\030\017 \001(\010B" + + "\004\342A\001\003:\243\001\352A\237\001\n.telcoautomation.googleapis" + + ".com/PublicBlueprint\022Jprojects/{project}" + + "/locations/{location}/publicBlueprints/{" + + "public_lueprint}*\020publicBlueprints2\017publ" + + "icBlueprint\"\370\007\n\nDeployment\022\014\n\004name\030\001 \001(\t" + + "\022\032\n\013revision_id\030\002 \001(\tB\005\342A\002\005\003\022\'\n\031source_b" + + "lueprint_revision\030\003 \001(\tB\004\342A\001\002\022>\n\024revisio" + + "n_create_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\022F\n\005state\030\005 \001(\01621.google.cl" + + "oud.telcoautomation.v1.Deployment.StateB" + + "\004\342A\001\003\022\032\n\014display_name\030\006 \001(\tB\004\342A\001\001\022\030\n\nrep" + + "ository\030\007 \001(\tB\004\342A\001\003\022:\n\005files\030\010 \003(\0132%.goo" + + "gle.cloud.telcoautomation.v1.FileB\004\342A\001\001\022" + + "M\n\006labels\030\t \003(\01327.google.cloud.telcoauto" + + "mation.v1.Deployment.LabelsEntryB\004\342A\001\001\0225" + + "\n\013create_time\030\n \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\0225\n\013update_time\030\013 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\004\342A\001\003\022\035\n\017source_p" + + "rovider\030\014 \001(\tB\004\342A\001\003\022\037\n\020workload_cluster\030" + + "\r \001(\tB\005\342A\002\005\001\022P\n\020deployment_level\030\016 \001(\01620" + + ".google.cloud.telcoautomation.v1.Deploym" + + "entLevelB\004\342A\001\003\022\036\n\020rollback_support\030\017 \001(\010" + + "B\004\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"D\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\t\n\005DRAFT\020\001\022\013\n\007APPLIED\020\002\022\014\n\010DELETIN" + + "G\020\003:\270\001\352A\264\001\n)telcoautomation.googleapis.c" + + "om/Deployment\022nprojects/{project}/locati" + + "ons/{location}/orchestrationClusters/{or" + + "chestration_cluster}/deployments/{deploy" + + "ment}*\013deployments2\ndeployment\"\212\004\n\022Hydra" + + "tedDeployment\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022N\n\005sta" + + "te\030\002 \001(\01629.google.cloud.telcoautomation." + + "v1.HydratedDeployment.StateB\004\342A\001\003\022:\n\005fil" + + "es\030\003 \003(\0132%.google.cloud.telcoautomation." + + "v1.FileB\004\342A\001\001\022\036\n\020workload_cluster\030\004 \001(\tB" + + "\004\342A\001\003\"6\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005DRAFT\020\001\022\013\n\007APPLIED\020\002:\373\001\352A\367\001\n1telcoautom" + + "ation.googleapis.com/HydratedDeployment\022" + + "\230\001projects/{project}/locations/{location" + + "}/orchestrationClusters/{orchestration_c" + + "luster}/deployments/{deployment}/hydrate" + + "dDeployments/{hydrated_deployment}*\023hydr" + + "atedDeployments2\022hydratedDeployment\"\271\001\n " + + "ListOrchestrationClustersRequest\022L\n\006pare" + + "nt\030\001 \001(\tB<\342A\001\002\372A5\0223telcoautomation.googl" + + "eapis.com/OrchestrationCluster\022\021\n\tpage_s" + + "ize\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\"\250\001\n!ListOrchestr" + + "ationClustersResponse\022U\n\026orchestration_c" + + "lusters\030\001 \003(\01325.google.cloud.telcoautoma" + + "tion.v1.OrchestrationCluster\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"l\n\036Ge" + + "tOrchestrationClusterRequest\022J\n\004name\030\001 \001" + + "(\tB<\342A\001\002\372A5\n3telcoautomation.googleapis." + + "com/OrchestrationCluster\"\217\002\n!CreateOrche" + + "strationClusterRequest\022L\n\006parent\030\001 \001(\tB<" + + "\342A\001\002\372A5\0223telcoautomation.googleapis.com/" + + "OrchestrationCluster\022&\n\030orchestration_cl" + + "uster_id\030\002 \001(\tB\004\342A\001\002\022Z\n\025orchestration_cl" + + "uster\030\003 \001(\01325.google.cloud.telcoautomati" + + "on.v1.OrchestrationClusterB\004\342A\001\002\022\030\n\nrequ" + + "est_id\030\004 \001(\tB\004\342A\001\001\"\211\001\n!DeleteOrchestrati" + + "onClusterRequest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3telcoautomation.googleapis.com/Orchestr" + + "ationCluster\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"\237" + + "\001\n\023ListEdgeSlmsRequest\022?\n\006parent\030\001 \001(\tB/" + + "\342A\001\002\372A(\022&telcoautomation.googleapis.com/" + + "EdgeSlm\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" + + "\"\201\001\n\024ListEdgeSlmsResponse\022;\n\tedge_slms\030\001" + + " \003(\0132(.google.cloud.telcoautomation.v1.E" + + "dgeSlm\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"R\n\021GetEdgeSlmRequest\022=\n\004nam" + + "e\030\001 \001(\tB/\342A\001\002\372A(\n&telcoautomation.google" + + "apis.com/EdgeSlm\"\316\001\n\024CreateEdgeSlmReques" + + "t\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\022&telcoautomat" + + "ion.googleapis.com/EdgeSlm\022\031\n\013edge_slm_i" + + "d\030\002 \001(\tB\004\342A\001\002\022@\n\010edge_slm\030\003 \001(\0132(.google" + + ".cloud.telcoautomation.v1.EdgeSlmB\004\342A\001\002\022" + + "\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"o\n\024DeleteEdgeS" + + "lmRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&telcoa" + + "utomation.googleapis.com/EdgeSlm\022\030\n\nrequ" + + "est_id\030\002 \001(\tB\004\342A\001\001\"\274\001\n\026CreateBlueprintRe" + + "quest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(telcoaut" + + "omation.googleapis.com/Blueprint\022\032\n\014blue" + + "print_id\030\002 \001(\tB\004\342A\001\001\022C\n\tblueprint\030\003 \001(\0132" + + "*.google.cloud.telcoautomation.v1.Bluepr" + + "intB\004\342A\001\002\"\224\001\n\026UpdateBlueprintRequest\022C\n\t" + + "blueprint\030\001 \001(\0132*.google.cloud.telcoauto" + + "mation.v1.BlueprintB\004\342A\001\002\0225\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + + "\"\232\001\n\023GetBlueprintRequest\022?\n\004name\030\001 \001(\tB1" + + "\342A\001\002\372A*\n(telcoautomation.googleapis.com/" + + "Blueprint\022B\n\004view\030\002 \001(\0162..google.cloud.t" + + "elcoautomation.v1.BlueprintViewB\004\342A\001\001\"Y\n" + + "\026DeleteBlueprintRequest\022?\n\004name\030\001 \001(\tB1\342" + + "A\001\002\372A*\n(telcoautomation.googleapis.com/B" + + "lueprint\"\243\001\n\025ListBlueprintsRequest\022A\n\006pa" + + "rent\030\001 \001(\tB1\342A\001\002\372A*\022(telcoautomation.goo" + + "gleapis.com/Blueprint\022\024\n\006filter\030\004 \001(\tB\004\342" + + "A\001\001\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\"q\n\026ListBlueprintsResponse" + + "\022>\n\nblueprints\030\001 \003(\0132*.google.cloud.telc" + + "oautomation.v1.Blueprint\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"Z\n\027ApproveBlueprintRequest\022?\n\004" + + "name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomation.goo" + + "gleapis.com/Blueprint\"Z\n\027ProposeBlueprin" + + "tRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoau" + + "tomation.googleapis.com/Blueprint\"Y\n\026Rej" + + "ectBlueprintRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372" + + "A*\n(telcoautomation.googleapis.com/Bluep" + + "rint\"\207\001\n\035ListBlueprintRevisionsRequest\022?" + + "\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomation.g" + + "oogleapis.com/Blueprint\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListBlueprintR" + + "evisionsResponse\022>\n\nblueprints\030\001 \003(\0132*.g" + + "oogle.cloud.telcoautomation.v1.Blueprint" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\254\001\n\037SearchBlue" + + "printRevisionsRequest\022A\n\006parent\030\001 \001(\tB1\342" + + "A\001\002\372A*\022(telcoautomation.googleapis.com/B" + + "lueprint\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022\027\n\tpage_si" + + "ze\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001" + + "\"{\n SearchBlueprintRevisionsResponse\022>\n\n" + + "blueprints\030\001 \003(\0132*.google.cloud.telcoaut" + + "omation.v1.Blueprint\022\027\n\017next_page_token\030" + + "\002 \001(\t\"a\n\036DiscardBlueprintChangesRequest\022" + + "?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomation." + + "googleapis.com/Blueprint\"!\n\037DiscardBluep" + + "rintChangesResponse\"\231\001\n\033ListPublicBluepr" + + "intsRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.te" + + "lcoautomation.googleapis.com/PublicBluep" + + "rint\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_to" + + "ken\030\003 \001(\tB\004\342A\001\001\"\212\001\n\034ListPublicBlueprints" + + "Response\022K\n\021public_blueprints\030\001 \003(\01320.go" + + "ogle.cloud.telcoautomation.v1.PublicBlue" + + "print\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\003\"b\n\031" + + "GetPublicBlueprintRequest\022E\n\004name\030\001 \001(\tB" + + "7\342A\001\002\372A0\n.telcoautomation.googleapis.com" + + "/PublicBlueprint\"\301\001\n\027CreateDeploymentReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)telcoauto" + + "mation.googleapis.com/Deployment\022\033\n\rdepl" + + "oyment_id\030\002 \001(\tB\004\342A\001\001\022E\n\ndeployment\030\003 \001(" + + "\0132+.google.cloud.telcoautomation.v1.Depl" + + "oymentB\004\342A\001\002\"\227\001\n\027UpdateDeploymentRequest" + + "\022E\n\ndeployment\030\001 \001(\0132+.google.cloud.telc" + + "oautomation.v1.DeploymentB\004\342A\001\002\0225\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\004\342A\001\002\"\235\001\n\024GetDeploymentRequest\022@\n\004name\030" + + "\001 \001(\tB2\342A\001\002\372A+\n)telcoautomation.googleap" + + "is.com/Deployment\022C\n\004view\030\002 \001(\0162/.google" + + ".cloud.telcoautomation.v1.DeploymentView" + + "B\004\342A\001\001\"[\n\027RemoveDeploymentRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\342A\001\002\372A+\n)telcoautomation.google" + + "apis.com/Deployment\"\245\001\n\026ListDeploymentsR" + + "equest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)telcoau" + + "tomation.googleapis.com/Deployment\022\024\n\006fi" + + "lter\030\004 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"t\n\027ListDeplo" + + "ymentsResponse\022@\n\013deployments\030\001 \003(\0132+.go" + + "ogle.cloud.telcoautomation.v1.Deployment" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\225\001\n\036ListDeploy" + + "mentRevisionsRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002" + + "\372A+\n)telcoautomation.googleapis.com/Depl" + + "oyment\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" + + "token\030\003 \001(\tB\004\342A\001\001\"|\n\037ListDeploymentRevis" + + "ionsResponse\022@\n\013deployments\030\001 \003(\0132+.goog" + + "le.cloud.telcoautomation.v1.Deployment\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\255\001\n SearchDeploy" + + "mentRevisionsRequest\022A\n\006parent\030\001 \001(\tB1\342A" + + "\001\002\372A*\022(telcoautomation.googleapis.com/Bl" + + "ueprint\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022\027\n\tpage_siz" + + "e\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"" + + "~\n!SearchDeploymentRevisionsResponse\022@\n\013" + + "deployments\030\001 \003(\0132+.google.cloud.telcoau" + + "tomation.v1.Deployment\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"c\n\037DiscardDeploymentChangesReque" + + "st\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)telcoautomati" + + "on.googleapis.com/Deployment\"\"\n DiscardD" + + "eploymentChangesResponse\"Z\n\026ApplyDeploym" + + "entRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)telco" + + "automation.googleapis.com/Deployment\"b\n\036" + + "ComputeDeploymentStatusRequest\022@\n\004name\030\001" + + " \001(\tB2\342A\001\002\372A+\n)telcoautomation.googleapi" + + "s.com/Deployment\"\313\001\n\037ComputeDeploymentSt" + + "atusResponse\022\014\n\004name\030\001 \001(\t\022H\n\021aggregated" + + "_status\030\002 \001(\0162\'.google.cloud.telcoautoma" + + "tion.v1.StatusB\004\342A\001\003\022P\n\021resource_statuse" + + "s\030\003 \003(\0132/.google.cloud.telcoautomation.v" + + "1.ResourceStatusB\004\342A\001\003\"x\n\031RollbackDeploy" + + "mentRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)telc" + + "oautomation.googleapis.com/Deployment\022\031\n" + + "\013revision_id\030\002 \001(\tB\004\342A\001\002\"\207\002\n\021OperationMe" + + "tadata\0225\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n\006tar" + + "get\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016s" + + "tatus_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requested_c" + + "ancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_version\030\007" + + " \001(\tB\004\342A\001\003\"h\n\034GetHydratedDeploymentReque" + + "st\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1telcoautomati" + + "on.googleapis.com/HydratedDeployment\"\237\001\n" + + "\036ListHydratedDeploymentsRequest\022J\n\006paren" + + "t\030\001 \001(\tB:\342A\001\002\372A3\0221telcoautomation.google" + + "apis.com/HydratedDeployment\022\027\n\tpage_size" + + "\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\215" + + "\001\n\037ListHydratedDeploymentsResponse\022Q\n\024hy" + + "drated_deployments\030\001 \003(\01323.google.cloud." + + "telcoautomation.v1.HydratedDeployment\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\260\001\n\037UpdateHydrate" + + "dDeploymentRequest\022V\n\023hydrated_deploymen" + + "t\030\001 \001(\01323.google.cloud.telcoautomation.v" + + "1.HydratedDeploymentB\004\342A\001\002\0225\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" + + "\002\"j\n\036ApplyHydratedDeploymentRequest\022H\n\004n" + + "ame\030\001 \001(\tB:\342A\001\002\372A3\n1telcoautomation.goog" + + "leapis.com/HydratedDeployment\"\334\001\n\020Manage" + + "mentConfig\022_\n\032standard_management_config" + + "\030\001 \001(\01329.google.cloud.telcoautomation.v1" + + ".StandardManagementConfigH\000\022W\n\026full_mana" + + "gement_config\030\002 \001(\01325.google.cloud.telco" + + "automation.v1.FullManagementConfigH\000B\016\n\014" + + "oneof_config\"\353\002\n\030StandardManagementConfi" + + "g\022\025\n\007network\030\001 \001(\tB\004\342A\001\001\022\024\n\006subnet\030\002 \001(\t" + + "B\004\342A\001\001\022$\n\026master_ipv4_cidr_block\030\003 \001(\tB\004" + + "\342A\001\001\022 \n\022cluster_cidr_block\030\004 \001(\tB\004\342A\001\001\022!" + + "\n\023services_cidr_block\030\005 \001(\tB\004\342A\001\001\022!\n\023clu" + + "ster_named_range\030\006 \001(\tB\004\342A\001\001\022\"\n\024services" + + "_named_range\030\007 \001(\tB\004\342A\001\001\022p\n!master_autho" + + "rized_networks_config\030\010 \001(\0132?.google.clo" + + "ud.telcoautomation.v1.MasterAuthorizedNe" + + "tworksConfigB\004\342A\001\001\"\347\002\n\024FullManagementCon" + + "fig\022\025\n\007network\030\001 \001(\tB\004\342A\001\001\022\024\n\006subnet\030\002 \001" + + "(\tB\004\342A\001\001\022$\n\026master_ipv4_cidr_block\030\003 \001(\t" + + "B\004\342A\001\001\022 \n\022cluster_cidr_block\030\004 \001(\tB\004\342A\001\001" + + "\022!\n\023services_cidr_block\030\005 \001(\tB\004\342A\001\001\022!\n\023c" + + "luster_named_range\030\006 \001(\tB\004\342A\001\001\022\"\n\024servic" + + "es_named_range\030\007 \001(\tB\004\342A\001\001\022p\n!master_aut" + + "horized_networks_config\030\010 \001(\0132?.google.c" + + "loud.telcoautomation.v1.MasterAuthorized" + + "NetworksConfigB\004\342A\001\001\"\311\001\n\036MasterAuthorize" + + "dNetworksConfig\022d\n\013cidr_blocks\030\001 \003(\0132I.g" + + "oogle.cloud.telcoautomation.v1.MasterAut" + + "horizedNetworksConfig.CidrBlockB\004\342A\001\001\032A\n" + + "\tCidrBlock\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\001\022\030" + + "\n\ncidr_block\030\002 \001(\tB\004\342A\001\001\"`\n\004File\022\022\n\004path" + + "\030\001 \001(\tB\004\342A\001\002\022\025\n\007content\030\002 \001(\tB\004\342A\001\001\022\025\n\007d" + + "eleted\030\003 \001(\010B\004\342A\001\001\022\026\n\010editable\030\004 \001(\010B\004\342A" + + "\001\001\"\304\002\n\016ResourceStatus\022\014\n\004name\030\001 \001(\t\022\032\n\022r" + + "esource_namespace\030\002 \001(\t\022\r\n\005group\030\003 \001(\t\022\017" + + "\n\007version\030\004 \001(\t\022\014\n\004kind\030\005 \001(\t\022J\n\rresourc" + + "e_type\030\006 \001(\0162-.google.cloud.telcoautomat" + + "ion.v1.ResourceTypeB\004\342A\001\003\022=\n\006status\030\007 \001(" + + "\0162\'.google.cloud.telcoautomation.v1.Stat" + + "usB\004\342A\001\003\022O\n\020nf_deploy_status\030\010 \001(\0132/.goo" + + "gle.cloud.telcoautomation.v1.NFDeploySta" + + "tusB\004\342A\001\003\"\217\001\n\016NFDeployStatus\022\032\n\014targeted" + + "_nfs\030\001 \001(\005B\004\342A\001\003\022\027\n\tready_nfs\030\002 \001(\005B\004\342A\001" + + "\003\022H\n\005sites\030\003 \003(\01323.google.cloud.telcoaut" + + "omation.v1.NFDeploySiteStatusB\004\342A\001\003\"\334\001\n\022" + + "NFDeploySiteStatus\022\022\n\004site\030\001 \001(\tB\004\342A\001\003\022\036" + + "\n\020pending_deletion\030\002 \001(\010B\004\342A\001\003\022I\n\thydrat" + + "ion\030\003 \001(\01320.google.cloud.telcoautomation" + + ".v1.HydrationStatusB\004\342A\001\003\022G\n\010workload\030\004 " + + "\001(\0132/.google.cloud.telcoautomation.v1.Wo" + + "rkloadStatusB\004\342A\001\003\"q\n\017HydrationStatus\022H\n" + + "\014site_version\030\001 \001(\0132,.google.cloud.telco" + + "automation.v1.SiteVersionB\004\342A\001\003\022\024\n\006statu" + + "s\030\002 \001(\tB\004\342A\001\003\"W\n\013SiteVersion\022\027\n\tnf_vendo" + + "r\030\001 \001(\tB\004\342A\001\003\022\025\n\007nf_type\030\002 \001(\tB\004\342A\001\003\022\030\n\n" + + "nf_version\030\003 \001(\tB\004\342A\001\003\"p\n\016WorkloadStatus" + + "\022H\n\014site_version\030\001 \001(\0132,.google.cloud.te" + + "lcoautomation.v1.SiteVersionB\004\342A\001\003\022\024\n\006st" + + "atus\030\002 \001(\tB\004\342A\001\003*b\n\rBlueprintView\022\036\n\032BLU" + + "EPRINT_VIEW_UNSPECIFIED\020\000\022\030\n\024BLUEPRINT_V" + + "IEW_BASIC\020\001\022\027\n\023BLUEPRINT_VIEW_FULL\020\002*f\n\016" + + "DeploymentView\022\037\n\033DEPLOYMENT_VIEW_UNSPEC" + + "IFIED\020\000\022\031\n\025DEPLOYMENT_VIEW_BASIC\020\001\022\030\n\024DE" + + "PLOYMENT_VIEW_FULL\020\002*^\n\014ResourceType\022\035\n\031" + + "RESOURCE_TYPE_UNSPECIFIED\020\000\022\026\n\022NF_DEPLOY" + + "_RESOURCE\020\001\022\027\n\023DEPLOYMENT_RESOURCE\020\002*\233\001\n" + + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\026\n\022STATU" + + "S_IN_PROGRESS\020\001\022\021\n\rSTATUS_ACTIVE\020\002\022\021\n\rST" + + "ATUS_FAILED\020\003\022\023\n\017STATUS_DELETING\020\004\022\022\n\016ST" + + "ATUS_DELETED\020\005\022\022\n\016STATUS_PEERING\020\n*o\n\017De" + + "ploymentLevel\022 \n\034DEPLOYMENT_LEVEL_UNSPEC" + + "IFIED\020\000\022\r\n\tHYDRATION\020\001\022\025\n\021SINGLE_DEPLOYM" + + "ENT\020\002\022\024\n\020MULTI_DEPLOYMENT\020\0032\354C\n\017TelcoAut" + + "omation\022\356\001\n\031ListOrchestrationClusters\022A." + + "google.cloud.telcoautomation.v1.ListOrch" + + "estrationClustersRequest\032B.google.cloud." + + "telcoautomation.v1.ListOrchestrationClus" + + "tersResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pare" + + "nt=projects/*/locations/*}/orchestration" + + "Clusters\022\333\001\n\027GetOrchestrationCluster\022?.g" + + "oogle.cloud.telcoautomation.v1.GetOrches" + + "trationClusterRequest\0325.google.cloud.tel" + + "coautomation.v1.OrchestrationCluster\"H\332A" + + "\004name\202\323\344\223\002;\0229/v1/{name=projects/*/locati" + + "ons/*/orchestrationClusters/*}\022\276\002\n\032Creat" + + "eOrchestrationCluster\022B.google.cloud.tel" + + "coautomation.v1.CreateOrchestrationClust" + + "erRequest\032\035.google.longrunning.Operation" + + "\"\274\001\312A)\n\024OrchestrationCluster\022\021OperationM" + + "etadata\332A5parent,orchestration_cluster,o" + + "rchestration_cluster_id\202\323\344\223\002R\"9/v1/{pare" + + "nt=projects/*/locations/*}/orchestration" + + "Clusters:\025orchestration_cluster\022\366\001\n\032Dele" + + "teOrchestrationCluster\022B.google.cloud.te" + + "lcoautomation.v1.DeleteOrchestrationClus" + + "terRequest\032\035.google.longrunning.Operatio" + + "n\"u\312A*\n\025google.protobuf.Empty\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\002;*9/v1/{name=project" + + "s/*/locations/*/orchestrationClusters/*}" + + "\022\272\001\n\014ListEdgeSlms\0224.google.cloud.telcoau" + + "tomation.v1.ListEdgeSlmsRequest\0325.google" + + ".cloud.telcoautomation.v1.ListEdgeSlmsRe" + + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=pro" + + "jects/*/locations/*}/edgeSlms\022\247\001\n\nGetEdg" + + "eSlm\0222.google.cloud.telcoautomation.v1.G" + + "etEdgeSlmRequest\032(.google.cloud.telcoaut" + + "omation.v1.EdgeSlm\";\332A\004name\202\323\344\223\002.\022,/v1/{" + + "name=projects/*/locations/*/edgeSlms/*}\022" + + "\342\001\n\rCreateEdgeSlm\0225.google.cloud.telcoau", + "tomation.v1.CreateEdgeSlmRequest\032\035.googl" + + "e.longrunning.Operation\"{\312A\034\n\007EdgeSlm\022\021O" + + "perationMetadata\332A\033parent,edge_slm,edge_" + + "slm_id\202\323\344\223\0028\",/v1/{parent=projects/*/loc" + + "ations/*}/edgeSlms:\010edge_slm\022\317\001\n\rDeleteE" + + "dgeSlm\0225.google.cloud.telcoautomation.v1" + + ".DeleteEdgeSlmRequest\032\035.google.longrunni" + + "ng.Operation\"h\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002.*,/v1/{n" + + "ame=projects/*/locations/*/edgeSlms/*}\022\361" + + "\001\n\017CreateBlueprint\0227.google.cloud.telcoa" + + "utomation.v1.CreateBlueprintRequest\032*.go" + + "ogle.cloud.telcoautomation.v1.Blueprint\"" + + "y\332A\035parent,blueprint,blueprint_id\202\323\344\223\002S\"" + + "F/v1/{parent=projects/*/locations/*/orch" + + "estrationClusters/*}/blueprints:\tbluepri" + + "nt\022\363\001\n\017UpdateBlueprint\0227.google.cloud.te" + + "lcoautomation.v1.UpdateBlueprintRequest\032" + + "*.google.cloud.telcoautomation.v1.Bluepr" + + "int\"{\332A\025blueprint,update_mask\202\323\344\223\002]2P/v1" + + "/{blueprint.name=projects/*/locations/*/" + + "orchestrationClusters/*/blueprints/*}:\tb" + + "lueprint\022\307\001\n\014GetBlueprint\0224.google.cloud" + + ".telcoautomation.v1.GetBlueprintRequest\032" + + "*.google.cloud.telcoautomation.v1.Bluepr" + + "int\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=projects/*" + + "/locations/*/orchestrationClusters/*/blu" + + "eprints/*}\022\271\001\n\017DeleteBlueprint\0227.google." + + "cloud.telcoautomation.v1.DeleteBlueprint" + + "Request\032\026.google.protobuf.Empty\"U\332A\004name" + + "\202\323\344\223\002H*F/v1/{name=projects/*/locations/*" + + "/orchestrationClusters/*/blueprints/*}\022\332" + + "\001\n\016ListBlueprints\0226.google.cloud.telcoau" + + "tomation.v1.ListBlueprintsRequest\0327.goog" + + "le.cloud.telcoautomation.v1.ListBlueprin" + + "tsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent" + + "=projects/*/locations/*/orchestrationClu" + + "sters/*}/blueprints\022\332\001\n\020ApproveBlueprint" + + "\0228.google.cloud.telcoautomation.v1.Appro" + + "veBlueprintRequest\032*.google.cloud.telcoa" + + "utomation.v1.Blueprint\"`\332A\004name\202\323\344\223\002S\"N/" + + "v1/{name=projects/*/locations/*/orchestr" + + "ationClusters/*/blueprints/*}:approve:\001*" + + "\022\332\001\n\020ProposeBlueprint\0228.google.cloud.tel" + + "coautomation.v1.ProposeBlueprintRequest\032" + + "*.google.cloud.telcoautomation.v1.Bluepr" + + "int\"`\332A\004name\202\323\344\223\002S\"N/v1/{name=projects/*" + + "/locations/*/orchestrationClusters/*/blu" + + "eprints/*}:propose:\001*\022\327\001\n\017RejectBlueprin" + + "t\0227.google.cloud.telcoautomation.v1.Reje" + + "ctBlueprintRequest\032*.google.cloud.telcoa" + + "utomation.v1.Blueprint\"_\332A\004name\202\323\344\223\002R\"M/" + + "v1/{name=projects/*/locations/*/orchestr" + + "ationClusters/*/blueprints/*}:reject:\001*\022" + + "\376\001\n\026ListBlueprintRevisions\022>.google.clou" + + "d.telcoautomation.v1.ListBlueprintRevisi" + + "onsRequest\032?.google.cloud.telcoautomatio" + + "n.v1.ListBlueprintRevisionsResponse\"c\332A\004" + + "name\202\323\344\223\002V\022T/v1/{name=projects/*/locatio" + + "ns/*/orchestrationClusters/*/blueprints/" + + "*}:listRevisions\022\216\002\n\030SearchBlueprintRevi" + + "sions\022@.google.cloud.telcoautomation.v1." + + "SearchBlueprintRevisionsRequest\032A.google" + + ".cloud.telcoautomation.v1.SearchBlueprin" + + "tRevisionsResponse\"m\332A\014parent,query\202\323\344\223\002" + + "X\022V/v1/{parent=projects/*/locations/*/or" + + "chestrationClusters/*}/blueprints:search" + + "Revisions\022\222\002\n\031SearchDeploymentRevisions\022" + + "A.google.cloud.telcoautomation.v1.Search" + + "DeploymentRevisionsRequest\032B.google.clou" + + "d.telcoautomation.v1.SearchDeploymentRev" + + "isionsResponse\"n\332A\014parent,query\202\323\344\223\002Y\022W/" + + "v1/{parent=projects/*/locations/*/orches" + + "trationClusters/*}/deployments:searchRev" + + "isions\022\376\001\n\027DiscardBlueprintChanges\022?.goo" + + "gle.cloud.telcoautomation.v1.DiscardBlue" + + "printChangesRequest\032@.google.cloud.telco" + + "automation.v1.DiscardBlueprintChangesRes" + + "ponse\"`\332A\004name\202\323\344\223\002S\"N/v1/{name=projects" + + "/*/locations/*/orchestrationClusters/*/b" + + "lueprints/*}:discard:\001*\022\332\001\n\024ListPublicBl" + + "ueprints\022<.google.cloud.telcoautomation." + + "v1.ListPublicBlueprintsRequest\032=.google." + + "cloud.telcoautomation.v1.ListPublicBluep" + + "rintsResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1/{par" + + "ent=projects/*/locations/*}/publicBluepr" + + "ints\022\307\001\n\022GetPublicBlueprint\022:.google.clo" + + "ud.telcoautomation.v1.GetPublicBlueprint" + + "Request\0320.google.cloud.telcoautomation.v" + + "1.PublicBlueprint\"C\332A\004name\202\323\344\223\0026\0224/v1/{n" + + "ame=projects/*/locations/*/publicBluepri" + + "nts/*}\022\370\001\n\020CreateDeployment\0228.google.clo" + + "ud.telcoautomation.v1.CreateDeploymentRe" + + "quest\032+.google.cloud.telcoautomation.v1." + + "Deployment\"}\332A\037parent,deployment,deploym" + + "ent_id\202\323\344\223\002U\"G/v1/{parent=projects/*/loc" + + "ations/*/orchestrationClusters/*}/deploy" + + "ments:\ndeployment\022\372\001\n\020UpdateDeployment\0228" + + ".google.cloud.telcoautomation.v1.UpdateD" + + "eploymentRequest\032+.google.cloud.telcoaut" + + "omation.v1.Deployment\"\177\332A\026deployment,upd" + + "ate_mask\202\323\344\223\002`2R/v1/{deployment.name=pro" + + "jects/*/locations/*/orchestrationCluster" + + "s/*/deployments/*}:\ndeployment\022\313\001\n\rGetDe" + + "ployment\0225.google.cloud.telcoautomation." + + "v1.GetDeploymentRequest\032+.google.cloud.t" + + "elcoautomation.v1.Deployment\"V\332A\004name\202\323\344" + + "\223\002I\022G/v1/{name=projects/*/locations/*/or" + + "chestrationClusters/*/deployments/*}\022\306\001\n" + + "\020RemoveDeployment\0228.google.cloud.telcoau" + + "tomation.v1.RemoveDeploymentRequest\032\026.go" + + "ogle.protobuf.Empty\"`\332A\004name\202\323\344\223\002S\"N/v1/" + + "{name=projects/*/locations/*/orchestrati" + + "onClusters/*/deployments/*}:remove:\001*\022\336\001" + + "\n\017ListDeployments\0227.google.cloud.telcoau" + + "tomation.v1.ListDeploymentsRequest\0328.goo" + + "gle.cloud.telcoautomation.v1.ListDeploym" + + "entsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1/{pare" + + "nt=projects/*/locations/*/orchestrationC" + + "lusters/*}/deployments\022\202\002\n\027ListDeploymen" + + "tRevisions\022?.google.cloud.telcoautomatio" + + "n.v1.ListDeploymentRevisionsRequest\032@.go" + + "ogle.cloud.telcoautomation.v1.ListDeploy" + + "mentRevisionsResponse\"d\332A\004name\202\323\344\223\002W\022U/v" + + "1/{name=projects/*/locations/*/orchestra" + + "tionClusters/*/deployments/*}:listRevisi" + + "ons\022\202\002\n\030DiscardDeploymentChanges\022@.googl" + + "e.cloud.telcoautomation.v1.DiscardDeploy" + + "mentChangesRequest\032A.google.cloud.telcoa" + + "utomation.v1.DiscardDeploymentChangesRes" + + "ponse\"a\332A\004name\202\323\344\223\002T\"O/v1/{name=projects" + + "/*/locations/*/orchestrationClusters/*/d" + + "eployments/*}:discard:\001*\022\330\001\n\017ApplyDeploy" + + "ment\0227.google.cloud.telcoautomation.v1.A" + + "pplyDeploymentRequest\032+.google.cloud.tel" + + "coautomation.v1.Deployment\"_\332A\004name\202\323\344\223\002" + + "R\"M/v1/{name=projects/*/locations/*/orch" + + "estrationClusters/*/deployments/*}:apply" + + ":\001*\022\214\002\n\027ComputeDeploymentStatus\022?.google" + + ".cloud.telcoautomation.v1.ComputeDeploym" + + "entStatusRequest\032@.google.cloud.telcoaut" + + "omation.v1.ComputeDeploymentStatusRespon" + + "se\"n\332A\004name\202\323\344\223\002a\022_/v1/{name=projects/*/" + + "locations/*/orchestrationClusters/*/depl" + + "oyments/*}:computeDeploymentStatus\022\355\001\n\022R" + + "ollbackDeployment\022:.google.cloud.telcoau" + + "tomation.v1.RollbackDeploymentRequest\032+." + + "google.cloud.telcoautomation.v1.Deployme" + + "nt\"n\332A\020name,revision_id\202\323\344\223\002U\"P/v1/{name" + + "=projects/*/locations/*/orchestrationClu" + + "sters/*/deployments/*}:rollback:\001*\022\371\001\n\025G" + + "etHydratedDeployment\022=.google.cloud.telc" + + "oautomation.v1.GetHydratedDeploymentRequ" + + "est\0323.google.cloud.telcoautomation.v1.Hy" + + "dratedDeployment\"l\332A\004name\202\323\344\223\002_\022]/v1/{na" + + "me=projects/*/locations/*/orchestrationC" + + "lusters/*/deployments/*/hydratedDeployme" + + "nts/*}\022\214\002\n\027ListHydratedDeployments\022?.goo" + + "gle.cloud.telcoautomation.v1.ListHydrate" + + "dDeploymentsRequest\032@.google.cloud.telco" + + "automation.v1.ListHydratedDeploymentsRes" + + "ponse\"n\332A\006parent\202\323\344\223\002_\022]/v1/{parent=proj" + + "ects/*/locations/*/orchestrationClusters" + + "/*/deployments/*}/hydratedDeployments\022\305\002" + + "\n\030UpdateHydratedDeployment\022@.google.clou" + + "d.telcoautomation.v1.UpdateHydratedDeplo" + + "ymentRequest\0323.google.cloud.telcoautomat" + + "ion.v1.HydratedDeployment\"\261\001\332A\037hydrated_" + + "deployment,update_mask\202\323\344\223\002\210\0012q/v1/{hydr" + + "ated_deployment.name=projects/*/location" + + "s/*/orchestrationClusters/*/deployments/" + + "*/hydratedDeployments/*}:\023hydrated_deplo" + + "yment\022\206\002\n\027ApplyHydratedDeployment\022?.goog" + + "le.cloud.telcoautomation.v1.ApplyHydrate" + + "dDeploymentRequest\0323.google.cloud.telcoa" + + "utomation.v1.HydratedDeployment\"u\332A\004name" + + "\202\323\344\223\002h\"c/v1/{name=projects/*/locations/*" + + "/orchestrationClusters/*/deployments/*/h" + + "ydratedDeployments/*}:apply:\001*\032R\312A\036telco" + + "automation.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\365\001\n#c" + + "om.google.cloud.telcoautomation.v1B\024Telc" + + "oautomationProtoP\001ZMcloud.google.com/go/" + + "telcoautomation/apiv1/telcoautomationpb;" + + "telcoautomationpb\252\002\037Google.Cloud.TelcoAu" + + "tomation.V1\312\002\037Google\\Cloud\\TelcoAutomati" + + "on\\V1\352\002\"Google::Cloud::TelcoAutomation::" + + "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.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_descriptor, + new java.lang.String[] { + "Name", + "ManagementConfig", + "CreateTime", + "UpdateTime", + "Labels", + "TnaVersion", + "State", + }); + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_OrchestrationCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_descriptor, + new java.lang.String[] { + "Name", + "OrchestrationCluster", + "CreateTime", + "UpdateTime", + "Labels", + "TnaVersion", + "State", + "WorkloadClusterType", + }); + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_EdgeSlm_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_telcoautomation_v1_Blueprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor, + new java.lang.String[] { + "Name", + "RevisionId", + "SourceBlueprint", + "RevisionCreateTime", + "ApprovalState", + "DisplayName", + "Repository", + "Files", + "Labels", + "CreateTime", + "UpdateTime", + "SourceProvider", + "DeploymentLevel", + "RollbackSupport", + }); + internal_static_google_cloud_telcoautomation_v1_Blueprint_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1_Blueprint_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1_Blueprint_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_Blueprint_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_PublicBlueprint_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "DeploymentLevel", + "SourceProvider", + "RollbackSupport", + }); + internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_telcoautomation_v1_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor, + new java.lang.String[] { + "Name", + "RevisionId", + "SourceBlueprintRevision", + "RevisionCreateTime", + "State", + "DisplayName", + "Repository", + "Files", + "Labels", + "CreateTime", + "UpdateTime", + "SourceProvider", + "WorkloadCluster", + "DeploymentLevel", + "RollbackSupport", + }); + internal_static_google_cloud_telcoautomation_v1_Deployment_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1_Deployment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1_Deployment_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_Deployment_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_HydratedDeployment_descriptor, + new java.lang.String[] { + "Name", "State", "Files", "WorkloadCluster", + }); + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListOrchestrationClustersResponse_descriptor, + new java.lang.String[] { + "OrchestrationClusters", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_GetOrchestrationClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_CreateOrchestrationClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "OrchestrationClusterId", "OrchestrationCluster", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DeleteOrchestrationClusterRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListEdgeSlmsResponse_descriptor, + new java.lang.String[] { + "EdgeSlms", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_GetEdgeSlmRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_CreateEdgeSlmRequest_descriptor, + new java.lang.String[] { + "Parent", "EdgeSlmId", "EdgeSlm", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DeleteEdgeSlmRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_CreateBlueprintRequest_descriptor, + new java.lang.String[] { + "Parent", "BlueprintId", "Blueprint", + }); + internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_descriptor, + new java.lang.String[] { + "Blueprint", "UpdateMask", + }); + internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_GetBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DeleteBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListBlueprintsResponse_descriptor, + new java.lang.String[] { + "Blueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ApproveBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ProposeBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_RejectBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListBlueprintRevisionsResponse_descriptor, + new java.lang.String[] { + "Blueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Query", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_SearchBlueprintRevisionsResponse_descriptor, + new java.lang.String[] { + "Blueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DiscardBlueprintChangesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListPublicBlueprintsResponse_descriptor, + new java.lang.String[] { + "PublicBlueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_GetPublicBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_CreateDeploymentRequest_descriptor, + new java.lang.String[] { + "Parent", "DeploymentId", "Deployment", + }); + internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_descriptor, + new java.lang.String[] { + "Deployment", "UpdateMask", + }); + internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_GetDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_RemoveDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListDeploymentsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListDeploymentRevisionsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Query", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_SearchDeploymentRevisionsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_DiscardDeploymentChangesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ApplyDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ComputeDeploymentStatusResponse_descriptor, + new java.lang.String[] { + "Name", "AggregatedStatus", "ResourceStatuses", + }); + internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_RollbackDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_cloud_telcoautomation_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_telcoautomation_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_GetHydratedDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ListHydratedDeploymentsResponse_descriptor, + new java.lang.String[] { + "HydratedDeployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_descriptor, + new java.lang.String[] { + "HydratedDeployment", "UpdateMask", + }); + internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ApplyHydratedDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1_ManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_telcoautomation_v1_ManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ManagementConfig_descriptor, + new java.lang.String[] { + "StandardManagementConfig", "FullManagementConfig", "OneofConfig", + }); + internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_StandardManagementConfig_descriptor, + new java.lang.String[] { + "Network", + "Subnet", + "MasterIpv4CidrBlock", + "ClusterCidrBlock", + "ServicesCidrBlock", + "ClusterNamedRange", + "ServicesNamedRange", + "MasterAuthorizedNetworksConfig", + }); + internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_FullManagementConfig_descriptor, + new java.lang.String[] { + "Network", + "Subnet", + "MasterIpv4CidrBlock", + "ClusterCidrBlock", + "ServicesCidrBlock", + "ClusterNamedRange", + "ServicesNamedRange", + "MasterAuthorizedNetworksConfig", + }); + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor, + new java.lang.String[] { + "CidrBlocks", + }); + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor = + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor, + new java.lang.String[] { + "DisplayName", "CidrBlock", + }); + internal_static_google_cloud_telcoautomation_v1_File_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_cloud_telcoautomation_v1_File_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_File_descriptor, + new java.lang.String[] { + "Path", "Content", "Deleted", "Editable", + }); + internal_static_google_cloud_telcoautomation_v1_ResourceStatus_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_cloud_telcoautomation_v1_ResourceStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_ResourceStatus_descriptor, + new java.lang.String[] { + "Name", + "ResourceNamespace", + "Group", + "Version", + "Kind", + "ResourceType", + "Status", + "NfDeployStatus", + }); + internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_NFDeployStatus_descriptor, + new java.lang.String[] { + "TargetedNfs", "ReadyNfs", "Sites", + }); + internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_NFDeploySiteStatus_descriptor, + new java.lang.String[] { + "Site", "PendingDeletion", "Hydration", "Workload", + }); + internal_static_google_cloud_telcoautomation_v1_HydrationStatus_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_cloud_telcoautomation_v1_HydrationStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_HydrationStatus_descriptor, + new java.lang.String[] { + "SiteVersion", "Status", + }); + internal_static_google_cloud_telcoautomation_v1_SiteVersion_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_cloud_telcoautomation_v1_SiteVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_SiteVersion_descriptor, + new java.lang.String[] { + "NfVendor", "NfType", "NfVersion", + }); + internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_descriptor, + new java.lang.String[] { + "SiteVersion", "Status", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequest.java new file mode 100644 index 000000000000..e9fb421bccfb --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequest.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `UpdateBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.UpdateBlueprintRequest} + */ +public final class UpdateBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.UpdateBlueprintRequest) + UpdateBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateBlueprintRequest.newBuilder() to construct. + private UpdateBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateBlueprintRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.Builder.class); + } + + public static final int BLUEPRINT_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1.Blueprint blueprint_; + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + @java.lang.Override + public boolean hasBlueprint() { + return blueprint_ != null; + } + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintOrBuilder() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (blueprint_ != null) { + output.writeMessage(1, getBlueprint()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blueprint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlueprint()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.telcoautomation.v1.UpdateBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest other = + (com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest) obj; + + if (hasBlueprint() != other.hasBlueprint()) return false; + if (hasBlueprint()) { + if (!getBlueprint().equals(other.getBlueprint())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasBlueprint()) { + hash = (37 * hash) + BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBlueprint().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest 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.telcoautomation.v1.UpdateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest 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.telcoautomation.v1.UpdateBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest 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.telcoautomation.v1.UpdateBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest 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.telcoautomation.v1.UpdateBlueprintRequest 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 object for `UpdateBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.UpdateBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.UpdateBlueprintRequest) + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest build() { + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest result = + new com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blueprint_ = blueprintBuilder_ == null ? blueprint_ : blueprintBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.telcoautomation.v1.UpdateBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest other) { + if (other == com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest.getDefaultInstance()) + return this; + if (other.hasBlueprint()) { + mergeBlueprint(other.getBlueprint()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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: + { + input.readMessage(getBlueprintFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.telcoautomation.v1.Blueprint blueprint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + blueprintBuilder_; + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + public boolean hasBlueprint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + public com.google.cloud.telcoautomation.v1.Blueprint getBlueprint() { + if (blueprintBuilder_ == null) { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } else { + return blueprintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueprint_ = value; + } else { + blueprintBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint( + com.google.cloud.telcoautomation.v1.Blueprint.Builder builderForValue) { + if (blueprintBuilder_ == null) { + blueprint_ = builderForValue.build(); + } else { + blueprintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBlueprint(com.google.cloud.telcoautomation.v1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && blueprint_ != null + && blueprint_ != com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance()) { + getBlueprintBuilder().mergeFrom(value); + } else { + blueprint_ = value; + } + } else { + blueprintBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBlueprint() { + bitField0_ = (bitField0_ & ~0x00000001); + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.Blueprint.Builder getBlueprintBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlueprintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintOrBuilder() { + if (blueprintBuilder_ != null) { + return blueprintBuilder_.getMessageOrBuilder(); + } else { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1.Blueprint.getDefaultInstance() + : blueprint_; + } + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder> + getBlueprintFieldBuilder() { + if (blueprintBuilder_ == null) { + blueprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Blueprint, + com.google.cloud.telcoautomation.v1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder>( + getBlueprint(), getParentForChildren(), isClean()); + blueprint_ = null; + } + return blueprintBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.UpdateBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.UpdateBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.UpdateBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..ce7663ae17fd --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateBlueprintRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface UpdateBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.UpdateBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + boolean hasBlueprint(); + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + com.google.cloud.telcoautomation.v1.Blueprint getBlueprint(); + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.BlueprintOrBuilder getBlueprintOrBuilder(); + + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequest.java new file mode 100644 index 000000000000..c7f0874a7c63 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequest.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `UpdateDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.UpdateDeploymentRequest} + */ +public final class UpdateDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.UpdateDeploymentRequest) + UpdateDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDeploymentRequest.newBuilder() to construct. + private UpdateDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDeploymentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.Builder.class); + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1.Deployment deployment_; + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return deployment_ != null; + } + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (deployment_ != null) { + output.writeMessage(1, getDeployment()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.telcoautomation.v1.UpdateDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest) obj; + + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest 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.telcoautomation.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest 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.telcoautomation.v1.UpdateDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest 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.telcoautomation.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest 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.telcoautomation.v1.UpdateDeploymentRequest 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 object for `UpdateDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.UpdateDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.UpdateDeploymentRequest) + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.telcoautomation.v1.UpdateDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest other) { + if (other == com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest.getDefaultInstance()) + return this; + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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: + { + input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.telcoautomation.v1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + deploymentBuilder_; + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.telcoautomation.v1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment( + com.google.cloud.telcoautomation.v1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.telcoautomation.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDeploymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1.Deployment.getDefaultInstance() + : deployment_; + } + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder> + getDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.Deployment, + com.google.cloud.telcoautomation.v1.Deployment.Builder, + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.UpdateDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.UpdateDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.UpdateDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..1cda7d8e801c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateDeploymentRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface UpdateDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.UpdateDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.telcoautomation.v1.Deployment getDeployment(); + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.DeploymentOrBuilder getDeploymentOrBuilder(); + + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequest.java new file mode 100644 index 000000000000..f2e4bc19ffd8 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequest.java @@ -0,0 +1,1037 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Request object for `UpdateHydratedDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest} + */ +public final class UpdateHydratedDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) + UpdateHydratedDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateHydratedDeploymentRequest.newBuilder() to construct. + private UpdateHydratedDeploymentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateHydratedDeploymentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateHydratedDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest.Builder.class); + } + + public static final int HYDRATED_DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1.HydratedDeployment hydratedDeployment_; + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hydratedDeployment field is set. + */ + @java.lang.Override + public boolean hasHydratedDeployment() { + return hydratedDeployment_ != null; + } + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hydratedDeployment. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployment() { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder + getHydratedDeploymentOrBuilder() { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (hydratedDeployment_ != null) { + output.writeMessage(1, getHydratedDeployment()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hydratedDeployment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHydratedDeployment()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.telcoautomation.v1.UpdateHydratedDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest other = + (com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) obj; + + if (hasHydratedDeployment() != other.hasHydratedDeployment()) return false; + if (hasHydratedDeployment()) { + if (!getHydratedDeployment().equals(other.getHydratedDeployment())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasHydratedDeployment()) { + hash = (37 * hash) + HYDRATED_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getHydratedDeployment().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest 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.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest 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.telcoautomation.v1.UpdateHydratedDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + 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.telcoautomation.v1.UpdateHydratedDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest 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.telcoautomation.v1.UpdateHydratedDeploymentRequest 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 object for `UpdateHydratedDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hydratedDeployment_ = null; + if (hydratedDeploymentBuilder_ != null) { + hydratedDeploymentBuilder_.dispose(); + hydratedDeploymentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_UpdateHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest build() { + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest result = + new com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hydratedDeployment_ = + hydratedDeploymentBuilder_ == null + ? hydratedDeployment_ + : hydratedDeploymentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.telcoautomation.v1.UpdateHydratedDeploymentRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + .getDefaultInstance()) return this; + if (other.hasHydratedDeployment()) { + mergeHydratedDeployment(other.getHydratedDeployment()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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: + { + input.readMessage( + getHydratedDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.telcoautomation.v1.HydratedDeployment hydratedDeployment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydratedDeployment, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder> + hydratedDeploymentBuilder_; + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hydratedDeployment field is set. + */ + public boolean hasHydratedDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hydratedDeployment. + */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployment() { + if (hydratedDeploymentBuilder_ == null) { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } else { + return hydratedDeploymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHydratedDeployment( + com.google.cloud.telcoautomation.v1.HydratedDeployment value) { + if (hydratedDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hydratedDeployment_ = value; + } else { + hydratedDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHydratedDeployment( + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentBuilder_ == null) { + hydratedDeployment_ = builderForValue.build(); + } else { + hydratedDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHydratedDeployment( + com.google.cloud.telcoautomation.v1.HydratedDeployment value) { + if (hydratedDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && hydratedDeployment_ != null + && hydratedDeployment_ + != com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance()) { + getHydratedDeploymentBuilder().mergeFrom(value); + } else { + hydratedDeployment_ = value; + } + } else { + hydratedDeploymentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHydratedDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + hydratedDeployment_ = null; + if (hydratedDeploymentBuilder_ != null) { + hydratedDeploymentBuilder_.dispose(); + hydratedDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder + getHydratedDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getHydratedDeploymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder + getHydratedDeploymentOrBuilder() { + if (hydratedDeploymentBuilder_ != null) { + return hydratedDeploymentBuilder_.getMessageOrBuilder(); + } else { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydratedDeployment, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder> + getHydratedDeploymentFieldBuilder() { + if (hydratedDeploymentBuilder_ == null) { + hydratedDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.HydratedDeployment, + com.google.cloud.telcoautomation.v1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder>( + getHydratedDeployment(), getParentForChildren(), isClean()); + hydratedDeployment_ = null; + } + return hydratedDeploymentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHydratedDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.UpdateHydratedDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..5759f07d7733 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/UpdateHydratedDeploymentRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface UpdateHydratedDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hydratedDeployment field is set. + */ + boolean hasHydratedDeployment(); + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hydratedDeployment. + */ + com.google.cloud.telcoautomation.v1.HydratedDeployment getHydratedDeployment(); + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1.HydratedDeploymentOrBuilder getHydratedDeploymentOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatus.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatus.java new file mode 100644 index 000000000000..8b1091307d80 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatus.java @@ -0,0 +1,915 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +/** + * + * + *
+ * Workload status.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.WorkloadStatus} + */ +public final class WorkloadStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1.WorkloadStatus) + WorkloadStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadStatus.newBuilder() to construct. + private WorkloadStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadStatus() { + status_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.WorkloadStatus.class, + com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder.class); + } + + public static final int SITE_VERSION_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1.SiteVersion siteVersion_; + /** + * + * + *
+   * Output only. SiteVersion running in the workload cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the siteVersion field is set. + */ + @java.lang.Override + public boolean hasSiteVersion() { + return siteVersion_ != null; + } + /** + * + * + *
+   * Output only. SiteVersion running in the workload cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The siteVersion. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersion getSiteVersion() { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } + /** + * + * + *
+   * Output only. SiteVersion running in the workload cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder getSiteVersionOrBuilder() { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } + + public static final int STATUS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = 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 (siteVersion_ != null) { + output.writeMessage(1, getSiteVersion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (siteVersion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSiteVersion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + } + 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.telcoautomation.v1.WorkloadStatus)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1.WorkloadStatus other = + (com.google.cloud.telcoautomation.v1.WorkloadStatus) obj; + + if (hasSiteVersion() != other.hasSiteVersion()) return false; + if (hasSiteVersion()) { + if (!getSiteVersion().equals(other.getSiteVersion())) return false; + } + if (!getStatus().equals(other.getStatus())) 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 (hasSiteVersion()) { + hash = (37 * hash) + SITE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSiteVersion().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus 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.telcoautomation.v1.WorkloadStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus 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.telcoautomation.v1.WorkloadStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus 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.telcoautomation.v1.WorkloadStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus 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.telcoautomation.v1.WorkloadStatus 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; + } + /** + * + * + *
+   * Workload status.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1.WorkloadStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1.WorkloadStatus) + com.google.cloud.telcoautomation.v1.WorkloadStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1.WorkloadStatus.class, + com.google.cloud.telcoautomation.v1.WorkloadStatus.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1.WorkloadStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + siteVersion_ = null; + if (siteVersionBuilder_ != null) { + siteVersionBuilder_.dispose(); + siteVersionBuilder_ = null; + } + status_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1_WorkloadStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.WorkloadStatus getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.WorkloadStatus build() { + com.google.cloud.telcoautomation.v1.WorkloadStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1.WorkloadStatus buildPartial() { + com.google.cloud.telcoautomation.v1.WorkloadStatus result = + new com.google.cloud.telcoautomation.v1.WorkloadStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1.WorkloadStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.siteVersion_ = + siteVersionBuilder_ == null ? siteVersion_ : siteVersionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + } + + @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.telcoautomation.v1.WorkloadStatus) { + return mergeFrom((com.google.cloud.telcoautomation.v1.WorkloadStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1.WorkloadStatus other) { + if (other == com.google.cloud.telcoautomation.v1.WorkloadStatus.getDefaultInstance()) + return this; + if (other.hasSiteVersion()) { + mergeSiteVersion(other.getSiteVersion()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + 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: + { + input.readMessage(getSiteVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + status_ = 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 com.google.cloud.telcoautomation.v1.SiteVersion siteVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.SiteVersion, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder, + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder> + siteVersionBuilder_; + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the siteVersion field is set. + */ + public boolean hasSiteVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The siteVersion. + */ + public com.google.cloud.telcoautomation.v1.SiteVersion getSiteVersion() { + if (siteVersionBuilder_ == null) { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } else { + return siteVersionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSiteVersion(com.google.cloud.telcoautomation.v1.SiteVersion value) { + if (siteVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + siteVersion_ = value; + } else { + siteVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSiteVersion( + com.google.cloud.telcoautomation.v1.SiteVersion.Builder builderForValue) { + if (siteVersionBuilder_ == null) { + siteVersion_ = builderForValue.build(); + } else { + siteVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSiteVersion(com.google.cloud.telcoautomation.v1.SiteVersion value) { + if (siteVersionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && siteVersion_ != null + && siteVersion_ + != com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance()) { + getSiteVersionBuilder().mergeFrom(value); + } else { + siteVersion_ = value; + } + } else { + siteVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSiteVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + siteVersion_ = null; + if (siteVersionBuilder_ != null) { + siteVersionBuilder_.dispose(); + siteVersionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.SiteVersion.Builder getSiteVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSiteVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder getSiteVersionOrBuilder() { + if (siteVersionBuilder_ != null) { + return siteVersionBuilder_.getMessageOrBuilder(); + } else { + return siteVersion_ == null + ? com.google.cloud.telcoautomation.v1.SiteVersion.getDefaultInstance() + : siteVersion_; + } + } + /** + * + * + *
+     * Output only. SiteVersion running in the workload cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.SiteVersion, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder, + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder> + getSiteVersionFieldBuilder() { + if (siteVersionBuilder_ == null) { + siteVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1.SiteVersion, + com.google.cloud.telcoautomation.v1.SiteVersion.Builder, + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder>( + getSiteVersion(), getParentForChildren(), isClean()); + siteVersion_ = null; + } + return siteVersionBuilder_; + } + + private java.lang.Object status_ = ""; + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status.
+     * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = 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.telcoautomation.v1.WorkloadStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1.WorkloadStatus) + private static final com.google.cloud.telcoautomation.v1.WorkloadStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1.WorkloadStatus(); + } + + public static com.google.cloud.telcoautomation.v1.WorkloadStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1.WorkloadStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatusOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatusOrBuilder.java new file mode 100644 index 000000000000..caa30ddb66ba --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/WorkloadStatusOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1; + +public interface WorkloadStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.WorkloadStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. SiteVersion running in the workload cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the siteVersion field is set. + */ + boolean hasSiteVersion(); + /** + * + * + *
+   * Output only. SiteVersion running in the workload cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The siteVersion. + */ + com.google.cloud.telcoautomation.v1.SiteVersion getSiteVersion(); + /** + * + * + *
+   * Output only. SiteVersion running in the workload cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1.SiteVersion site_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1.SiteVersionOrBuilder getSiteVersionOrBuilder(); + + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + java.lang.String getStatus(); + /** + * + * + *
+   * Output only. Status.
+   * 
+ * + * string status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/proto/google/cloud/telcoautomation/v1/telcoautomation.proto b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/proto/google/cloud/telcoautomation/v1/telcoautomation.proto new file mode 100644 index 000000000000..ba13683a697a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/proto/google/cloud/telcoautomation/v1/telcoautomation.proto @@ -0,0 +1,1912 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.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.telcoautomation.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/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/telcoautomation/apiv1/telcoautomationpb;telcoautomationpb"; +option java_multiple_files = true; +option java_outer_classname = "TelcoautomationProto"; +option java_package = "com.google.cloud.telcoautomation.v1"; +option php_namespace = "Google\\Cloud\\TelcoAutomation\\V1"; +option ruby_package = "Google::Cloud::TelcoAutomation::V1"; +option csharp_namespace = "Google.Cloud.TelcoAutomation.V1"; + +// TelcoAutomation Service manages the control plane cluster a.k.a. +// Orchestration Cluster (GKE cluster with config controller) of TNA. It also +// exposes blueprint APIs which manages the lifecycle of blueprints that control +// the infrastructure setup (e.g GDCE clusters) and deployment of network +// functions. +service TelcoAutomation { + option (google.api.default_host) = "telcoautomation.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists OrchestrationClusters in a given project and location. + rpc ListOrchestrationClusters(ListOrchestrationClustersRequest) + returns (ListOrchestrationClustersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/orchestrationClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single OrchestrationCluster. + rpc GetOrchestrationCluster(GetOrchestrationClusterRequest) + returns (OrchestrationCluster) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new OrchestrationCluster in a given project and location. + rpc CreateOrchestrationCluster(CreateOrchestrationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/orchestrationClusters" + body: "orchestration_cluster" + }; + option (google.api.method_signature) = + "parent,orchestration_cluster,orchestration_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "OrchestrationCluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single OrchestrationCluster. + rpc DeleteOrchestrationCluster(DeleteOrchestrationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/orchestrationClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists EdgeSlms in a given project and location. + rpc ListEdgeSlms(ListEdgeSlmsRequest) returns (ListEdgeSlmsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/edgeSlms" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single EdgeSlm. + rpc GetEdgeSlm(GetEdgeSlmRequest) returns (EdgeSlm) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/edgeSlms/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new EdgeSlm in a given project and location. + rpc CreateEdgeSlm(CreateEdgeSlmRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/edgeSlms" + body: "edge_slm" + }; + option (google.api.method_signature) = "parent,edge_slm,edge_slm_id"; + option (google.longrunning.operation_info) = { + response_type: "EdgeSlm" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single EdgeSlm. + rpc DeleteEdgeSlm(DeleteEdgeSlmRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/edgeSlms/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Creates a blueprint. + rpc CreateBlueprint(CreateBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints" + body: "blueprint" + }; + option (google.api.method_signature) = "parent,blueprint,blueprint_id"; + } + + // Updates a blueprint. + rpc UpdateBlueprint(UpdateBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + patch: "/v1/{blueprint.name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}" + body: "blueprint" + }; + option (google.api.method_signature) = "blueprint,update_mask"; + } + + // Returns the requested blueprint. + rpc GetBlueprint(GetBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a blueprint and all its revisions. + rpc DeleteBlueprint(DeleteBlueprintRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List all blueprints. + rpc ListBlueprints(ListBlueprintsRequest) returns (ListBlueprintsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints" + }; + option (google.api.method_signature) = "parent"; + } + + // Approves a blueprint and commits a new revision. + rpc ApproveBlueprint(ApproveBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:approve" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Proposes a blueprint for approval of changes. + rpc ProposeBlueprint(ProposeBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:propose" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Rejects a blueprint revision proposal and flips it back to Draft state. + rpc RejectBlueprint(RejectBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:reject" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // List blueprint revisions of a given blueprint. + rpc ListBlueprintRevisions(ListBlueprintRevisionsRequest) + returns (ListBlueprintRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:listRevisions" + }; + option (google.api.method_signature) = "name"; + } + + // Searches across blueprint revisions. + rpc SearchBlueprintRevisions(SearchBlueprintRevisionsRequest) + returns (SearchBlueprintRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints:searchRevisions" + }; + option (google.api.method_signature) = "parent,query"; + } + + // Searches across deployment revisions. + rpc SearchDeploymentRevisions(SearchDeploymentRevisionsRequest) + returns (SearchDeploymentRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments:searchRevisions" + }; + option (google.api.method_signature) = "parent,query"; + } + + // Discards the changes in a blueprint and reverts the blueprint to the last + // approved blueprint revision. No changes take place if a blueprint does not + // have revisions. + rpc DiscardBlueprintChanges(DiscardBlueprintChangesRequest) + returns (DiscardBlueprintChangesResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:discard" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the blueprints in TNA's public catalog. Default page size = 20, + // Max Page Size = 100. + rpc ListPublicBlueprints(ListPublicBlueprintsRequest) + returns (ListPublicBlueprintsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/publicBlueprints" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the requested public blueprint. + rpc GetPublicBlueprint(GetPublicBlueprintRequest) returns (PublicBlueprint) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/publicBlueprints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment. + rpc CreateDeployment(CreateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments" + body: "deployment" + }; + option (google.api.method_signature) = "parent,deployment,deployment_id"; + } + + // Updates a deployment. + rpc UpdateDeployment(UpdateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + patch: "/v1/{deployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*}" + body: "deployment" + }; + option (google.api.method_signature) = "deployment,update_mask"; + } + + // Returns the requested deployment. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Removes the deployment by marking it as DELETING. Post which deployment and + // it's revisions gets deleted. + rpc RemoveDeployment(RemoveDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:remove" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // List all deployments. + rpc ListDeployments(ListDeploymentsRequest) + returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // List deployment revisions of a given deployment. + rpc ListDeploymentRevisions(ListDeploymentRevisionsRequest) + returns (ListDeploymentRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:listRevisions" + }; + option (google.api.method_signature) = "name"; + } + + // Discards the changes in a deployment and reverts the deployment to the last + // approved deployment revision. No changes take place if a deployment does + // not have revisions. + rpc DiscardDeploymentChanges(DiscardDeploymentChangesRequest) + returns (DiscardDeploymentChangesResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:discard" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Applies the deployment's YAML files to the parent orchestration cluster. + rpc ApplyDeployment(ApplyDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:apply" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the requested deployment status. + rpc ComputeDeploymentStatus(ComputeDeploymentStatusRequest) + returns (ComputeDeploymentStatusResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:computeDeploymentStatus" + }; + option (google.api.method_signature) = "name"; + } + + // Rollback the active deployment to the given past approved deployment + // revision. + rpc RollbackDeployment(RollbackDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:rollback" + body: "*" + }; + option (google.api.method_signature) = "name,revision_id"; + } + + // Returns the requested hydrated deployment. + rpc GetHydratedDeployment(GetHydratedDeploymentRequest) + returns (HydratedDeployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List all hydrated deployments present under a deployment. + rpc ListHydratedDeployments(ListHydratedDeploymentsRequest) + returns (ListHydratedDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/orchestrationClusters/*/deployments/*}/hydratedDeployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a hydrated deployment. + rpc UpdateHydratedDeployment(UpdateHydratedDeploymentRequest) + returns (HydratedDeployment) { + option (google.api.http) = { + patch: "/v1/{hydrated_deployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}" + body: "hydrated_deployment" + }; + option (google.api.method_signature) = "hydrated_deployment,update_mask"; + } + + // Applies a hydrated deployment to a workload cluster. + rpc ApplyHydratedDeployment(ApplyHydratedDeploymentRequest) + returns (HydratedDeployment) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}:apply" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// BlueprintView defines the type of view of the blueprint. +enum BlueprintView { + // Unspecified enum value. + BLUEPRINT_VIEW_UNSPECIFIED = 0; + + // View which only contains metadata. + BLUEPRINT_VIEW_BASIC = 1; + + // View which contains metadata and files it encapsulates. + BLUEPRINT_VIEW_FULL = 2; +} + +// DeploymentView defines the type of view of the deployment. +enum DeploymentView { + // Unspecified enum value. + DEPLOYMENT_VIEW_UNSPECIFIED = 0; + + // View which only contains metadata. + DEPLOYMENT_VIEW_BASIC = 1; + + // View which contains metadata and files it encapsulates. + DEPLOYMENT_VIEW_FULL = 2; +} + +// Represent type of CR. +enum ResourceType { + // Unspecified resource type. + RESOURCE_TYPE_UNSPECIFIED = 0; + + // User specified NF Deploy CR. + NF_DEPLOY_RESOURCE = 1; + + // CRs that are part of a blueprint. + DEPLOYMENT_RESOURCE = 2; +} + +// Status of an entity (resource, deployment). +enum Status { + // Unknown state. + STATUS_UNSPECIFIED = 0; + + // Under progress. + STATUS_IN_PROGRESS = 1; + + // Running and ready to serve traffic. + STATUS_ACTIVE = 2; + + // Failed or stalled. + STATUS_FAILED = 3; + + // Delete in progress. + STATUS_DELETING = 4; + + // Deleted deployment. + STATUS_DELETED = 5; + + // NFDeploy specific status. Peering in progress. + STATUS_PEERING = 10; +} + +// DeploymentLevel of a blueprint signifies where the blueprint will be +// applied. +enum DeploymentLevel { + // Default unspecified deployment level. + DEPLOYMENT_LEVEL_UNSPECIFIED = 0; + + // Blueprints at HYDRATION level cannot be used to create a Deployment + // (A user cannot manually initate deployment of these blueprints on + // orchestration or workload cluster). + // These blueprints stay in a user's private catalog and are configured and + // deployed by TNA automation. + HYDRATION = 1; + + // Blueprints at SINGLE_DEPLOYMENT level can be + // a) Modified in private catalog. + // b) Used to create a deployment on orchestration cluster by the user, once + // approved. + SINGLE_DEPLOYMENT = 2; + + // Blueprints at MULTI_DEPLOYMENT level can be + // a) Modified in private catalog. + // b) Used to create a deployment on orchestration cluster which will create + // further hydrated deployments. + MULTI_DEPLOYMENT = 3; +} + +// Orchestration cluster represents a GKE cluster with config controller and +// TNA specific components installed on it. +message OrchestrationCluster { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}" + }; + + // Possible states that the Orchestration Cluster can be in. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // OrchestrationCluster is being created. + CREATING = 1; + + // OrchestrationCluster has been created and is ready for use. + ACTIVE = 2; + + // OrchestrationCluster is being deleted. + DELETING = 3; + + // OrchestrationCluster encountered an error and is in an indeterministic + // state. User can still initiate a delete operation on this state. + FAILED = 4; + } + + // Name of the orchestration cluster. The name of orchestration cluster cannot + // be more than 24 characters. + string name = 1; + + // Management configuration of the underlying GKE cluster. + ManagementConfig management_config = 5; + + // Output only. [Output only] Create time stamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels as key value pairs. + map labels = 4; + + // Output only. Provides the TNA version installed on the cluster. + string tna_version = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the Orchestration Cluster. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// EdgeSlm represents an SLM instance which manages the lifecycle of edge +// components installed on Workload clusters managed by an Orchestration +// Cluster. +message EdgeSlm { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/EdgeSlm" + pattern: "projects/{project}/locations/{location}/edgeSlms/{edge_slm}" + plural: "edgeSlms" + singular: "edgeSlm" + }; + + // Possible states of the resource. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // EdgeSlm is being created. + CREATING = 1; + + // EdgeSlm has been created and is ready for use. + ACTIVE = 2; + + // EdgeSlm is being deleted. + DELETING = 3; + + // EdgeSlm encountered an error and is in an indeterministic + // state. User can still initiate a delete operation on this state. + FAILED = 4; + } + + // Workload clusters supported by TNA. New values will be added to the enum + // list as TNA adds supports for new workload clusters in future. + enum WorkloadClusterType { + // Unspecified workload cluster. + WORKLOAD_CLUSTER_TYPE_UNSPECIFIED = 0; + + // Workload cluster is a GDCE cluster. + GDCE = 1; + + // Workload cluster is a GKE cluster. + GKE = 2; + } + + // Name of the EdgeSlm resource. + string name = 1; + + // Immutable. Reference to the orchestration cluster on which templates for + // this resources will be applied. This should be of format + // projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}. + string orchestration_cluster = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Output only. [Output only] Create time stamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs. The key and value should contain + // characters which are UTF-8 compliant and less than 50 characters. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Provides the active TNA version for this resource. + string tna_version = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the EdgeSlm resource. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Type of workload cluster for which an EdgeSLM resource is + // created. + WorkloadClusterType workload_cluster_type = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A Blueprint contains a collection of kubernetes resources in the form of +// YAML files. The file contents of a blueprint are collectively known as +// package. A blueprint can be +// a) imported from TNA's public catalog +// b) modified as per a user's need +// c) proposed and approved. +// On approval, a revision of blueprint is created which can be used to +// create a deployment on Orchestration or Workload Cluster. +message Blueprint { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/Blueprint" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/blueprints/{blueprint}" + plural: "blueprints" + singular: "blueprint" + }; + + // Approval state indicates the state of a Blueprint in its approval + // lifecycle. + enum ApprovalState { + // Unspecified state. + APPROVAL_STATE_UNSPECIFIED = 0; + + // A blueprint starts in DRAFT state once it is created. All edits are made + // to the blueprint in DRAFT state. + DRAFT = 1; + + // When the edits are ready for review, blueprint can be proposed and moves + // to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state. + PROPOSED = 2; + + // When a proposed blueprint is approved, it moves to APPROVED state. A new + // revision is committed. The latest committed revision can be used to + // create a deployment on Orchestration or Workload Cluster. Edits to an + // APPROVED blueprint changes its state back to DRAFT. The last committed + // revision of a blueprint represents its latest APPROVED state. + APPROVED = 3; + } + + // The name of the blueprint. If unspecified, the name will be autogenerated + // from server side. Name of the blueprint must not contain `@` character. + string name = 1; + + // Output only. Immutable. The revision ID of the blueprint. + // A new revision is committed whenever a blueprint is approved. + string revision_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. Immutable. The public blueprint ID from which this blueprint was + // created. + string source_blueprint = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp revision_create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED) + ApprovalState approval_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Human readable name of a Blueprint. + string display_name = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Name of the repository where the blueprint files are stored. + string repository = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Files present in a blueprint. + // When invoking UpdateBlueprint API, only the modified files should be + // included in this. Files that are not included in the update of a blueprint + // will not be changed. + repeated File files = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels are key-value attributes that can be set on a blueprint + // resource by the user. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Blueprint creation time. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the blueprint was updated. + google.protobuf.Timestamp update_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source provider is the author of a public blueprint, from + // which this blueprint is created. + string source_provider = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DeploymentLevel of a blueprint signifies where the blueprint + // will be applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT] + DeploymentLevel deployment_level = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the deployment created from this blueprint can be + // rolled back. + bool rollback_support = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Blueprint contains a collection of kubernetes resources in the form of +// YAML files. The file contents of a blueprint are collectively known as +// package. +// Public blueprint is a TNA provided blueprint that in present in TNA's public +// catalog. A user can copy the public blueprint to their private catalog for +// further modifications. +message PublicBlueprint { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/PublicBlueprint" + pattern: "projects/{project}/locations/{location}/publicBlueprints/{public_lueprint}" + plural: "publicBlueprints" + singular: "publicBlueprint" + }; + + // Name of the public blueprint. + string name = 1; + + // The display name of the public blueprint. + string display_name = 2; + + // The description of the public blueprint. + string description = 3; + + // DeploymentLevel of a blueprint signifies where the blueprint will be + // applied. e.g. [HYDRATION, SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT] + DeploymentLevel deployment_level = 4; + + // Source provider is the author of a public blueprint. e.g. Google, vendors + string source_provider = 5; + + // Output only. Indicates if the deployment created from this blueprint can be + // rolled back. + bool rollback_support = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Deployment contains a collection of YAML files (This collection is also known +// as package) that can to applied on an orchestration cluster (GKE cluster with +// TNA addons) or a workload cluster. +message Deployment { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/Deployment" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}" + plural: "deployments" + singular: "deployment" + }; + + // State defines which state the current deployment is in. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // A deployment starts in DRAFT state. All edits are made in DRAFT state. A + // deployment opened for editing after applying will be in draft state, + // while its prevision revision will be its current applied version. + DRAFT = 1; + + // This state means that the contents (YAML files containing kubernetes + // resources) of the deployment have been applied to an Orchestration or + // Workload Cluster. A revision is created when a deployment is applied. + // This revision will represent the latest view of what is applied on the + // cluster until the deployment is modified and applied again, which will + // create a new revision. + APPLIED = 2; + + // A deployment in DELETING state has been marked for deletion. Its + // deletion status can be queried using `ComputeDeploymentStatus` API. No + // updates are allowed to a deployment in DELETING state. + DELETING = 3; + } + + // The name of the deployment. + string name = 1; + + // Output only. Immutable. The revision ID of the deployment. + // A new revision is committed whenever a change in deployment is applied. + string revision_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. The blueprint revision from which this deployment was created. + string source_blueprint_revision = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp revision_create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the deployment (DRAFT, APPLIED, DELETING). + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Human readable name of a Deployment. + string display_name = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Name of the repository where the deployment package files are + // stored. + string repository = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Files present in a deployment. + // When invoking UpdateDeployment API, only the modified files should be + // included in this. Files that are not included in the update of a deployment + // will not be changed. + repeated File files = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels are key-value attributes that can be set on a deployment + // resource by the user. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Deployment creation time. + google.protobuf.Timestamp create_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the deployment was updated. + google.protobuf.Timestamp update_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source provider is the author of a public blueprint, from + // which this deployment is created. + string source_provider = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. The WorkloadCluster on which to create the Deployment. + string workload_cluster = 13 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; + + // Output only. Attributes to where the deployment can inflict changes. The + // value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT]. + DeploymentLevel deployment_level = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the deployment can be rolled back, exported from + // public blueprint. + bool rollback_support = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A collection of kubernetes yaml files which are deployed on a Workload +// Cluster. Hydrated Deployments are created by TNA intent based automation. +message HydratedDeployment { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/HydratedDeployment" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}/hydratedDeployments/{hydrated_deployment}" + plural: "hydratedDeployments" + singular: "hydratedDeployment" + }; + + // State defines which state the current hydrated deployment is in. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // A hydrated deployment starts in DRAFT state. All edits are made in DRAFT + // state. + DRAFT = 1; + + // When the edit is applied, the hydrated deployment moves to APPLIED + // state. No changes can be made once a hydrated deployment is applied. + APPLIED = 2; + } + + // Output only. The name of the hydrated deployment. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the hydrated deployment (DRAFT, APPLIED). + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. File contents of a hydrated deployment. + // When invoking UpdateHydratedBlueprint API, only the modified files should + // be included in this. Files that are not included in the update of a + // hydrated deployment will not be changed. + repeated File files = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. WorkloadCluster identifies which workload cluster will the + // hydrated deployment will be deployed on. + string workload_cluster = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting list of OrchestrationClusters. +message ListOrchestrationClustersRequest { + // Required. Parent value for ListOrchestrationClustersRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results. + string filter = 4; + + // Hint for how to order the results. + string order_by = 5; +} + +// Message for response to listing OrchestrationClusters. +message ListOrchestrationClustersResponse { + // The list of OrchestrationCluster + repeated OrchestrationCluster orchestration_clusters = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a OrchestrationCluster. +message GetOrchestrationClusterRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; +} + +// Message for creating a OrchestrationCluster. +message CreateOrchestrationClusterRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Required. Id of the requesting object + // If auto-generating Id server-side, remove this field and + // orchestration_cluster_id from the method_signature of Create RPC + string orchestration_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + OrchestrationCluster orchestration_cluster = 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 + // the 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]; +} + +// Message for deleting a OrchestrationCluster. +message DeleteOrchestrationClusterRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Optional. An optional 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 + // the 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]; +} + +// Message for requesting list of EdgeSlms +message ListEdgeSlmsRequest { + // Required. Parent value for ListEdgeSlmsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results + string filter = 4; + + // Hint for how to order the results + string order_by = 5; +} + +// Message for response to listing EdgeSlms. +message ListEdgeSlmsResponse { + // The list of EdgeSlm + repeated EdgeSlm edge_slms = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a EdgeSlm. +message GetEdgeSlmRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; +} + +// Message for creating a EdgeSlm. +message CreateEdgeSlmRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; + + // Required. Id of the requesting object + // If auto-generating Id server-side, remove this field and + // edge_slm_id from the method_signature of Create RPC + string edge_slm_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + EdgeSlm edge_slm = 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 + // the 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]; +} + +// Message for deleting a EdgeSlm. +message DeleteEdgeSlmRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; + + // Optional. An optional 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 + // the 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]; +} + +// Request object for `CreateBlueprint`. +message CreateBlueprintRequest { + // Required. The name of parent resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Optional. The name of the blueprint. + string blueprint_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `Blueprint` to create. + Blueprint blueprint = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdateBlueprint`. +message UpdateBlueprintRequest { + // Required. The `blueprint` to update. + Blueprint blueprint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Update mask is used to specify the fields to be overwritten in + // the `blueprint` resource by the update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `GetBlueprint`. +message GetBlueprintRequest { + // Required. The name of the blueprint. + // Case 1: If the name provided in the request is + // {blueprint_id}@{revision_id}, then the revision with revision_id will be + // returned. Case 2: If the name provided in the request is {blueprint}, then + // the current state of the blueprint is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Optional. Defines the type of view of the blueprint. + // When field is not present BLUEPRINT_VIEW_BASIC is considered as default. + BlueprintView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request object for `DeleteBlueprint`. +message DeleteBlueprintRequest { + // Required. The name of blueprint to delete. + // Blueprint name should be in the format {blueprint_id}, if + // {blueprint_id}@{revision_id} is passed then the API throws invalid + // argument. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `ListBlueprints`. +message ListBlueprintsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Optional. Filtering only supports equality on blueprint state. + // It should be in the form: "state = DRAFT". `OR` operator can be used to + // get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED". + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of blueprints to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListBlueprints call. + // It can be provided to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListBlueprints`. +message ListBlueprintsResponse { + // The list of requested blueprints. + repeated Blueprint blueprints = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `ApproveBlueprint`. +message ApproveBlueprintRequest { + // Required. The name of the blueprint to approve. The blueprint must be in + // Proposed state. A new revision is committed on approval. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `ProposeBlueprint`. +message ProposeBlueprintRequest { + // Required. The name of the blueprint being proposed. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `RejectBlueprint`. +message RejectBlueprintRequest { + // Required. The name of the blueprint being rejected. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `ListBlueprintRevisions`. +message ListBlueprintRevisionsRequest { + // Required. The name of the blueprint to list revisions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // The maximum number of revisions to return per page. + int32 page_size = 2; + + // The page token, received from a previous ListBlueprintRevisions call + // It can be provided to retrieve the subsequent page. + string page_token = 3; +} + +// Response object for `ListBlueprintRevisions`. +message ListBlueprintRevisionsResponse { + // The revisions of the blueprint. + repeated Blueprint blueprints = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `SearchBlueprintRevisions`. +message SearchBlueprintRevisionsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Required. Supported queries: + // 1. "" : Lists all revisions across all blueprints. + // 2. "latest=true" : Lists latest revisions across all blueprints. + // 3. "name={name}" : Lists all revisions of blueprint with name + // {name}. + // 4. "name={name} latest=true": Lists latest revision of blueprint with name + // {name} + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of blueprints revisions to return per page. + // max page size = 100, default page size = 20. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous search call. + // It can be provided to retrieve the subsequent page. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `SearchBlueprintRevisions`. +message SearchBlueprintRevisionsResponse { + // The list of requested blueprint revisions. + repeated Blueprint blueprints = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `DiscardBlueprintChanges`. +message DiscardBlueprintChangesRequest { + // Required. The name of the blueprint of which changes are being discarded. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Response object for `DiscardBlueprintChanges`. +message DiscardBlueprintChangesResponse {} + +// Request object for `ListPublicBlueprints`. +message ListPublicBlueprintsRequest { + // Required. Parent value of public blueprint. + // Format should be - + // "projects/{project_id}/locations/{location_name}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/PublicBlueprint" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListPublicBlueprints`. +message ListPublicBlueprintsResponse { + // The list of public blueprints to return. + repeated PublicBlueprint public_blueprints = 1; + + // Output only. A token identifying a page of results the server should + // return. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request object for `GetPublicBlueprint`. +message GetPublicBlueprintRequest { + // Required. The name of the public blueprint. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/PublicBlueprint" + } + ]; +} + +// Request object for `CreateDeployment`. +message CreateDeploymentRequest { + // Required. The name of parent resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. The name of the deployment. + string deployment_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `Deployment` to create. + Deployment deployment = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdateDeployment`. +message UpdateDeploymentRequest { + // Required. The `deployment` to update. + Deployment deployment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Update mask is used to specify the fields to be overwritten in + // the `deployment` resource by the update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `GetDeployment`. +message GetDeploymentRequest { + // Required. The name of the deployment. + // Case 1: If the name provided in the request is + // {deployment_id}@{revision_id}, then the revision with revision_id will be + // returned. + // Case 2: If the name provided in the request is {deployment}, then + // the current state of the deployment is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. Defines the type of view of the deployment. + // When field is not present VIEW_BASIC is considered as default. + DeploymentView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request object for `RemoveDeployment`. +message RemoveDeploymentRequest { + // Required. The name of deployment to initiate delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Request object for `ListDeployments`. +message ListDeploymentsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. Filtering only supports equality on deployment state. + // It should be in the form: "state = DRAFT". `OR` operator can be used to + // get response for multiple states. e.g. "state = DRAFT OR state = APPLIED". + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of deployments to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListDeployments call. + // It can be provided to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListDeployments`. +message ListDeploymentsResponse { + // The list of requested deployments. + repeated Deployment deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request for listing all revisions of a deployment. +message ListDeploymentRevisionsRequest { + // Required. The name of the deployment to list revisions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. The maximum number of revisions to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListDeploymentRevisions + // call Provide this to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of deployment revisions for a given deployment. +message ListDeploymentRevisionsResponse { + // The revisions of the deployment. + repeated Deployment deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `SearchDeploymentRevisions`. +message SearchDeploymentRevisionsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Required. Supported queries: + // 1. "" : Lists all revisions across all deployments. + // 2. "latest=true" : Lists latest revisions across all + // deployments. + // 3. "name={name}" : Lists all revisions of deployment with name + // {name}. + // 4. "name={name} latest=true": Lists latest revision of deployment with name + // {name} + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of deployment revisions to return per page. + // max page size = 100, default page size = 20. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous search call. + // It can be provided to retrieve the subsequent page. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `SearchDeploymentRevisions`. +message SearchDeploymentRevisionsResponse { + // The list of requested deployment revisions. + repeated Deployment deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `DiscardDeploymentChanges`. +message DiscardDeploymentChangesRequest { + // Required. The name of the deployment of which changes are being discarded. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Response object for `DiscardDeploymentChanges`. +message DiscardDeploymentChangesResponse {} + +// Request object for `ApplyDeployment`. The resources in given deployment +// gets applied to Orchestration Cluster. A new revision is created when a +// deployment is applied. +message ApplyDeploymentRequest { + // Required. The name of the deployment to apply to orchestration cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Request object for `ComputeDeploymentStatus`. +message ComputeDeploymentStatusRequest { + // Required. The name of the deployment without revisionID. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Response object for `ComputeDeploymentStatus`. +message ComputeDeploymentStatusResponse { + // The name of the deployment. + string name = 1; + + // Output only. Aggregated status of a deployment. + Status aggregated_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource level status details in deployments. + repeated ResourceStatus resource_statuses = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request object for `RollbackDeployment`. +message RollbackDeploymentRequest { + // Required. Name of the deployment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Required. The revision id of deployment to roll back to. + string revision_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request object for `GetHydratedDeployment`. +message GetHydratedDeploymentRequest { + // Required. Name of the hydrated deployment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/HydratedDeployment" + } + ]; +} + +// Request object for `ListHydratedDeployments`. +message ListHydratedDeploymentsRequest { + // Required. The deployment managing the hydrated deployments. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/HydratedDeployment" + } + ]; + + // Optional. The maximum number of hydrated deployments to return. The service + // may return fewer than this value. If unspecified, at most 50 hydrated + // deployments will be returned. The maximum value is 1000. Values above 1000 + // will be set to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListHydratedDeployments + // call. Provide this to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListHydratedDeployments`. +message ListHydratedDeploymentsResponse { + // The list of hydrated deployments. + repeated HydratedDeployment hydrated_deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `UpdateHydratedDeployment`. +message UpdateHydratedDeploymentRequest { + // Required. The hydrated deployment to update. + HydratedDeployment hydrated_deployment = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. Update mask supports a special + // value `*` which fully replaces (equivalent to PUT) the resource provided. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for applying a hydrated deployment. +message ApplyHydratedDeploymentRequest { + // Required. The name of the hydrated deployment to apply. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/HydratedDeployment" + } + ]; +} + +// Configuration of the cluster management +message ManagementConfig { + // The configuration can be one of StandardManagementConfig + // and FullManagementConfig + oneof oneof_config { + // Configuration of the standard (GKE) cluster management + StandardManagementConfig standard_management_config = 1; + + // Configuration of the full (Autopilot) cluster management. Full cluster + // management is a preview feature. + FullManagementConfig full_management_config = 2; + } +} + +// Configuration of the standard (GKE) cluster management. +message StandardManagementConfig { + // Optional. Name of the VPC Network to put the GKE cluster and nodes in. The + // VPC will be created if it doesn't exist. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the subnet that the interface will be part of. Network + // key must be specified and the subnet must be a subnetwork of the specified + // network. + string subnet = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The /28 network that the masters will use. It should be free + // within the network. + string master_ipv4_cidr_block = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster pod IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation + // (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string cluster_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster service IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation (e.g. + // 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string services_cidr_block = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block + // can be used to automatically create a GKE-managed one. + string cluster_named_range = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for service ClusterIPs. Alternatively, + // services_cidr_block can be used to automatically create a GKE-managed one. + string services_named_range = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Master Authorized Network that supports multiple CIDR blocks. + // Allows access to the k8s master from multiple blocks. It cannot be set at + // the same time with the field man_block. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration of the full (Autopilot) cluster management +message FullManagementConfig { + // Optional. Name of the VPC Network to put the GKE cluster and nodes in. The + // VPC will be created if it doesn't exist. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the subnet that the interface will be part of. Network + // key must be specified and the subnet must be a subnetwork of the specified + // network. + string subnet = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The /28 network that the masters will use. + string master_ipv4_cidr_block = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster pod IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation + // (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string cluster_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster service IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation (e.g. + // 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string services_cidr_block = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block + // can be used to automatically create a GKE-managed one. + string cluster_named_range = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for service ClusterIPs. Alternatively, + // services_cidr_block can be used to automatically create a GKE-managed one. + string services_named_range = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Master Authorized Network that supports multiple CIDR blocks. + // Allows access to the k8s master from multiple blocks. It cannot be set at + // the same time with the field man_block. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration of the Master Authorized Network that support multiple CIDRs +message MasterAuthorizedNetworksConfig { + // CidrBlock contains an optional name and one CIDR block. + message CidrBlock { + // Optional. display_name is an optional field for users to identify CIDR + // blocks. + string display_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. cidr_block must be specified in CIDR notation when using + // master_authorized_networks_config. Currently, the user could still use + // the deprecated man_block field, so this field is currently optional, but + // will be required in the future. + string cidr_block = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. cidr_blocks define up to 50 external networks that could access + // Kubernetes master through HTTPS. + repeated CidrBlock cidr_blocks = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// File represents a yaml file present in a blueprint's package. +message File { + // Required. Path of the file in package. + // e.g. `gdce/v1/cluster.yaml` + string path = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The contents of a file in string format. + string content = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Signifies whether a file is marked for deletion. + bool deleted = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether changes are allowed to a file. If the field is + // not set, the file cannot be edited. + bool editable = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Status of a deployment resource. +message ResourceStatus { + // Name of the resource. + string name = 1; + + // Namespace of the resource. + string resource_namespace = 2; + + // Group to which the resource belongs to. + string group = 3; + + // Version of the resource. + string version = 4; + + // Kind of the resource. + string kind = 5; + + // Output only. Resource type. + ResourceType resource_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of the resource. + Status status = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Detailed status of NFDeploy. + NFDeployStatus nf_deploy_status = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Deployment status of NFDeploy. +message NFDeployStatus { + // Output only. Total number of NFs targeted by this deployment + int32 targeted_nfs = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Total number of NFs targeted by this deployment with a Ready + // Condition set. + int32 ready_nfs = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Per-Site Status. + repeated NFDeploySiteStatus sites = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Per-Site Status. +message NFDeploySiteStatus { + // Output only. Site id. + string site = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If true, the Site Deletion is in progress. + bool pending_deletion = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Hydration status. + HydrationStatus hydration = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Workload status. + WorkloadStatus workload = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Hydration status. +message HydrationStatus { + // Output only. SiteVersion Hydration is targeting. + SiteVersion site_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status. + string status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// SiteVersion Hydration is targeting. +message SiteVersion { + // Output only. NF vendor. + string nf_vendor = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. NF vendor type. + string nf_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. NF version. + string nf_version = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Workload status. +message WorkloadStatus { + // Output only. SiteVersion running in the workload cluster. + SiteVersion site_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status. + string status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/clirr-ignored-differences.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..d693faed065c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/telcoautomation/v1alpha1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/telcoautomation/v1alpha1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/telcoautomation/v1alpha1/*OrBuilder + boolean has*(*) + + diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml new file mode 100644 index 000000000000..c32cdde2e9af --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-telcoautomation-v1alpha1 + 0.0.1-SNAPSHOT + proto-google-cloud-telcoautomation-v1alpha1 + Proto library for google-cloud-telcoautomation + + com.google.cloud + google-cloud-telcoautomation-parent + 0.0.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequest.java new file mode 100644 index 000000000000..6f031fbe0f81 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequest.java @@ -0,0 +1,650 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ApplyDeployment`. The resources in given deployment
+ * gets applied to Orchestration Cluster. A new revision is created when a
+ * deployment is applied.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest} + */ +public final class ApplyDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) + ApplyDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplyDeploymentRequest.newBuilder() to construct. + private ApplyDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplyDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplyDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.ApplyDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) 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.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest 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.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest 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.telcoautomation.v1alpha1.ApplyDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest 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.telcoautomation.v1alpha1.ApplyDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest 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.telcoautomation.v1alpha1.ApplyDeploymentRequest 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 object for `ApplyDeployment`. The resources in given deployment
+   * gets applied to Orchestration Cluster. A new revision is created when a
+   * deployment is applied.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest 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.telcoautomation.v1alpha1.ApplyDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest.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. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * 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. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * 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. The name of the deployment to apply to orchestration cluster.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.ApplyDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ApplyDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..498daac4448a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ApplyDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment to apply to orchestration cluster.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequest.java new file mode 100644 index 000000000000..e2768a8a6dba --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request for applying a hydrated deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest} + */ +public final class ApplyHydratedDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) + ApplyHydratedDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApplyHydratedDeploymentRequest.newBuilder() to construct. + private ApplyHydratedDeploymentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApplyHydratedDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApplyHydratedDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest 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 applying a hydrated deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + .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. The name of the hydrated deployment to apply.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the hydrated deployment to apply.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the hydrated deployment to apply.
+     * 
+ * + * + * 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. The name of the hydrated deployment to apply.
+     * 
+ * + * + * 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. The name of the hydrated deployment to apply.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyHydratedDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..849042cbbb1e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApplyHydratedDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ApplyHydratedDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the hydrated deployment to apply.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequest.java new file mode 100644 index 000000000000..be853509c31c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ApproveBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest} + */ +public final class ApproveBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) + ApproveBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveBlueprintRequest.newBuilder() to construct. + private ApproveBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.ApproveBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) 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.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest 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.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest 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.telcoautomation.v1alpha1.ApproveBlueprintRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest + 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.telcoautomation.v1alpha1.ApproveBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest 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.telcoautomation.v1alpha1.ApproveBlueprintRequest 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 object for `ApproveBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest 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.telcoautomation.v1alpha1.ApproveBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest.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. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * 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. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * 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. The name of the blueprint to approve. The blueprint must be in
+     * Proposed state. A new revision is committed on approval.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.ApproveBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ApproveBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..5c978058aaf8 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ApproveBlueprintRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ApproveBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint to approve. The blueprint must be in
+   * Proposed state. A new revision is committed on approval.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Blueprint.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Blueprint.java new file mode 100644 index 000000000000..85029ac0bf20 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Blueprint.java @@ -0,0 +1,3778 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * A Blueprint contains a collection of kubernetes resources in the form of
+ * YAML files. The file contents of a blueprint are collectively known as
+ * package. A blueprint can be
+ * a) imported from TNA's public catalog
+ * b) modified as per a user's need
+ * c) proposed and approved.
+ * On approval, a revision of blueprint is created which can be used to
+ * create a deployment on Orchestration Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.Blueprint} + */ +public final class Blueprint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.Blueprint) + BlueprintOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blueprint.newBuilder() to construct. + private Blueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Blueprint() { + name_ = ""; + revisionId_ = ""; + sourceBlueprint_ = ""; + approvalState_ = 0; + displayName_ = ""; + repository_ = ""; + files_ = java.util.Collections.emptyList(); + sourceProvider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Blueprint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + 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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder.class); + } + + /** + * + * + *
+   * Approval state indicates the state of a Blueprint in its approval
+   * lifecycle.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState} + */ + public enum ApprovalState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * APPROVAL_STATE_UNSPECIFIED = 0; + */ + APPROVAL_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A blueprint starts in DRAFT state once it is created. All edits are made
+     * to the blueprint in DRAFT state.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * When the edits are ready for review, blueprint can be proposed and moves
+     * to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state.
+     * 
+ * + * PROPOSED = 2; + */ + PROPOSED(2), + /** + * + * + *
+     * When a proposed blueprint is approved, it moves to APPROVED state. A new
+     * revision is committed. The latest committed revision can be used to
+     * create a deployment on Orchestration Cluster. Edits to an APPROVED
+     * blueprint changes its state back to DRAFT. The last committed revision of
+     * a blueprint represents its latest APPROVED state.
+     * 
+ * + * APPROVED = 3; + */ + APPROVED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * APPROVAL_STATE_UNSPECIFIED = 0; + */ + public static final int APPROVAL_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A blueprint starts in DRAFT state once it is created. All edits are made
+     * to the blueprint in DRAFT state.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
+     * When the edits are ready for review, blueprint can be proposed and moves
+     * to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state.
+     * 
+ * + * PROPOSED = 2; + */ + public static final int PROPOSED_VALUE = 2; + /** + * + * + *
+     * When a proposed blueprint is approved, it moves to APPROVED state. A new
+     * revision is committed. The latest committed revision can be used to
+     * create a deployment on Orchestration Cluster. Edits to an APPROVED
+     * blueprint changes its state back to DRAFT. The last committed revision of
+     * a blueprint represents its latest APPROVED state.
+     * 
+ * + * APPROVED = 3; + */ + public static final int APPROVED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ApprovalState 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 ApprovalState forNumber(int value) { + switch (value) { + case 0: + return APPROVAL_STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return PROPOSED; + case 3: + return APPROVED; + 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 ApprovalState findValueByNumber(int number) { + return ApprovalState.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.telcoautomation.v1alpha1.Blueprint.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ApprovalState[] VALUES = values(); + + public static ApprovalState 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 ApprovalState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_BLUEPRINT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBlueprint_ = ""; + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprint. + */ + @java.lang.Override + public java.lang.String getSourceBlueprint() { + java.lang.Object ref = sourceBlueprint_; + 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(); + sourceBlueprint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBlueprintBytes() { + java.lang.Object ref = sourceBlueprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp revisionCreateTime_; + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + @java.lang.Override + public boolean hasRevisionCreateTime() { + return revisionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRevisionCreateTime() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + + public static final int APPROVAL_STATE_FIELD_NUMBER = 6; + private int approvalState_ = 0; + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalState. + */ + @java.lang.Override + public int getApprovalStateValue() { + return approvalState_; + } + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalState. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState getApprovalState() { + com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState result = + com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState.forNumber(approvalState_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object repository_ = ""; + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + 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(); + repository_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List files_; + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.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 = 12; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.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 SOURCE_PROVIDER_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + @java.lang.Override + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + 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(); + sourceProvider_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = 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(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceBlueprint_); + } + if (revisionCreateTime_ != null) { + output.writeMessage(5, getRevisionCreateTime()); + } + if (approvalState_ + != com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState + .APPROVAL_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, approvalState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, repository_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(9, files_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (createTime_ != null) { + output.writeMessage(11, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(12, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, sourceProvider_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBlueprint_); + } + if (revisionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRevisionCreateTime()); + } + if (approvalState_ + != com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState + .APPROVAL_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, approvalState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, repository_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, files_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, sourceProvider_); + } + 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.telcoautomation.v1alpha1.Blueprint)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.Blueprint other = + (com.google.cloud.telcoautomation.v1alpha1.Blueprint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getSourceBlueprint().equals(other.getSourceBlueprint())) return false; + if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; + if (hasRevisionCreateTime()) { + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } + if (approvalState_ != other.approvalState_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRepository().equals(other.getRepository())) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (!getSourceProvider().equals(other.getSourceProvider())) 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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (37 * hash) + SOURCE_BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getSourceBlueprint().hashCode(); + if (hasRevisionCreateTime()) { + hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRevisionCreateTime().hashCode(); + } + hash = (37 * hash) + APPROVAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + approvalState_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SOURCE_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvider().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint 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.telcoautomation.v1alpha1.Blueprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint 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.telcoautomation.v1alpha1.Blueprint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint 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.telcoautomation.v1alpha1.Blueprint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint 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.telcoautomation.v1alpha1.Blueprint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Blueprint contains a collection of kubernetes resources in the form of
+   * YAML files. The file contents of a blueprint are collectively known as
+   * package. A blueprint can be
+   * a) imported from TNA's public catalog
+   * b) modified as per a user's need
+   * c) proposed and approved.
+   * On approval, a revision of blueprint is created which can be used to
+   * create a deployment on Orchestration Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.Blueprint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.Blueprint) + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + 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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.class, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.Blueprint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + sourceBlueprint_ = ""; + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + approvalState_ = 0; + displayName_ = ""; + repository_ = ""; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + sourceProvider_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint build() { + com.google.cloud.telcoautomation.v1alpha1.Blueprint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.Blueprint result = + new com.google.cloud.telcoautomation.v1alpha1.Blueprint(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.Blueprint result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.Blueprint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceBlueprint_ = sourceBlueprint_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.approvalState_ = approvalState_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.repository_ = repository_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sourceProvider_ = sourceProvider_; + } + } + + @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.telcoautomation.v1alpha1.Blueprint) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.Blueprint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.Blueprint other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSourceBlueprint().isEmpty()) { + sourceBlueprint_ = other.sourceBlueprint_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRevisionCreateTime()) { + mergeRevisionCreateTime(other.getRevisionCreateTime()); + } + if (other.approvalState_ != 0) { + setApprovalStateValue(other.getApprovalStateValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getSourceProvider().isEmpty()) { + sourceProvider_ = other.sourceProvider_; + bitField0_ |= 0x00000800; + 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: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceBlueprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + approvalState_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + repository_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.cloud.telcoautomation.v1alpha1.File m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + sourceProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + default: + { + 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_ = ""; + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the blueprint. If unspecified, the name will be autogenerated
+     * from server side. Name of the blueprint must not contain `@` character.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the blueprint.
+     * A new revision is committed whenever a blueprint is approved.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sourceBlueprint_ = ""; + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprint. + */ + public java.lang.String getSourceBlueprint() { + java.lang.Object ref = sourceBlueprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBlueprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprint. + */ + public com.google.protobuf.ByteString getSourceBlueprintBytes() { + java.lang.Object ref = sourceBlueprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The sourceBlueprint to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBlueprint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceBlueprint() { + sourceBlueprint_ = getDefaultInstance().getSourceBlueprint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The public blueprint ID from which this blueprint was
+     * created.
+     * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for sourceBlueprint to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBlueprint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp revisionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + public boolean hasRevisionCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + public com.google.protobuf.Timestamp getRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } else { + return revisionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revisionCreateTime_ = value; + } else { + revisionCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = builderForValue.build(); + } else { + revisionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRevisionCreateTimeBuilder().mergeFrom(value); + } else { + revisionCreateTime_ = value; + } + } else { + revisionCreateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRevisionCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRevisionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + if (revisionCreateTimeBuilder_ != null) { + return revisionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRevisionCreateTimeFieldBuilder() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTime_ = null; + } + return revisionCreateTimeBuilder_; + } + + private int approvalState_ = 0; + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalState. + */ + @java.lang.Override + public int getApprovalStateValue() { + return approvalState_; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for approvalState to set. + * @return This builder for chaining. + */ + public Builder setApprovalStateValue(int value) { + approvalState_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalState. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState getApprovalState() { + com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState result = + com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState.forNumber( + approvalState_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The approvalState to set. + * @return This builder for chaining. + */ + public Builder setApprovalState( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + approvalState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApprovalState() { + bitField0_ = (bitField0_ & ~0x00000010); + approvalState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Blueprint.
+     * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object repository_ = ""; + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + repository_ = getDefaultInstance().getRepository(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the blueprint files are stored.
+     * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a blueprint.
+     * When invoking UpdateBlueprint API, only the modified files should be
+     * included in this. Files that are not included in the update of a blueprint
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + 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_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a blueprint
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + 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. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. Blueprint creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.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. The timestamp when the blueprint was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvider_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProvider() { + sourceProvider_ = getDefaultInstance().getSourceProvider(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this blueprint is created.
+     * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProvider_ = value; + bitField0_ |= 0x00000800; + 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.telcoautomation.v1alpha1.Blueprint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.Blueprint) + private static final com.google.cloud.telcoautomation.v1alpha1.Blueprint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.Blueprint(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Blueprint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.Blueprint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java new file mode 100644 index 000000000000..7aaac23bac0d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 BlueprintName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/blueprints/{blueprint}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + private final String blueprint; + + @Deprecated + protected BlueprintName() { + project = null; + location = null; + orchestrationCluster = null; + blueprint = null; + } + + private BlueprintName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + blueprint = Preconditions.checkNotNull(builder.getBlueprint()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getBlueprint() { + return blueprint; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BlueprintName of( + String project, String location, String orchestrationCluster, String blueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setBlueprint(blueprint) + .build(); + } + + public static String format( + String project, String location, String orchestrationCluster, String blueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setBlueprint(blueprint) + .build() + .toString(); + } + + public static BlueprintName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT.validatedMatch( + formattedString, "BlueprintName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("orchestration_cluster"), + matchMap.get("blueprint")); + } + + 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 (BlueprintName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + if (blueprint != null) { + fieldMapBuilder.put("blueprint", blueprint); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_BLUEPRINT.instantiate( + "project", + project, + "location", + location, + "orchestration_cluster", + orchestrationCluster, + "blueprint", + blueprint); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BlueprintName that = ((BlueprintName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster) + && Objects.equals(this.blueprint, that.blueprint); + } + 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(orchestrationCluster); + h *= 1000003; + h ^= Objects.hashCode(blueprint); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/blueprints/{blueprint}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + private String blueprint; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getBlueprint() { + return blueprint; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + public Builder setBlueprint(String blueprint) { + this.blueprint = blueprint; + return this; + } + + private Builder(BlueprintName blueprintName) { + this.project = blueprintName.project; + this.location = blueprintName.location; + this.orchestrationCluster = blueprintName.orchestrationCluster; + this.blueprint = blueprintName.blueprint; + } + + public BlueprintName build() { + return new BlueprintName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintOrBuilder.java new file mode 100644 index 000000000000..9a6aa2002550 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintOrBuilder.java @@ -0,0 +1,477 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface BlueprintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.Blueprint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the blueprint. If unspecified, the name will be autogenerated
+   * from server side. Name of the blueprint must not contain `@` character.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Output only. Immutable. The revision ID of the blueprint.
+   * A new revision is committed whenever a blueprint is approved.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprint. + */ + java.lang.String getSourceBlueprint(); + /** + * + * + *
+   * Required. Immutable. The public blueprint ID from which this blueprint was
+   * created.
+   * 
+ * + * + * string source_blueprint = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprint. + */ + com.google.protobuf.ByteString getSourceBlueprintBytes(); + + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + boolean hasRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + com.google.protobuf.Timestamp getRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for approvalState. + */ + int getApprovalStateValue(); + /** + * + * + *
+   * Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState approval_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The approvalState. + */ + com.google.cloud.telcoautomation.v1alpha1.Blueprint.ApprovalState getApprovalState(); + + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. Human readable name of a Blueprint.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + java.lang.String getRepository(); + /** + * + * + *
+   * Output only. Name of the repository where the blueprint files are stored.
+   * 
+ * + * string repository = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * Optional. Files present in a blueprint.
+   * When invoking UpdateBlueprint API, only the modified files should be
+   * included in this. Files that are not included in the update of a blueprint
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a blueprint
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Blueprint creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the blueprint was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + java.lang.String getSourceProvider(); + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this blueprint is created.
+   * 
+ * + * string source_provider = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + com.google.protobuf.ByteString getSourceProviderBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintView.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintView.java new file mode 100644 index 000000000000..90af948d1c89 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintView.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * BlueprintView defines the type of view of the blueprint.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.BlueprintView} + */ +public enum BlueprintView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * BLUEPRINT_VIEW_UNSPECIFIED = 0; + */ + BLUEPRINT_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * BLUEPRINT_VIEW_BASIC = 1; + */ + BLUEPRINT_VIEW_BASIC(1), + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * BLUEPRINT_VIEW_FULL = 2; + */ + BLUEPRINT_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * BLUEPRINT_VIEW_UNSPECIFIED = 0; + */ + public static final int BLUEPRINT_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * BLUEPRINT_VIEW_BASIC = 1; + */ + public static final int BLUEPRINT_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * BLUEPRINT_VIEW_FULL = 2; + */ + public static final int BLUEPRINT_VIEW_FULL_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 BlueprintView 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 BlueprintView forNumber(int value) { + switch (value) { + case 0: + return BLUEPRINT_VIEW_UNSPECIFIED; + case 1: + return BLUEPRINT_VIEW_BASIC; + case 2: + return BLUEPRINT_VIEW_FULL; + 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 BlueprintView findValueByNumber(int number) { + return BlueprintView.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.telcoautomation.v1alpha1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BlueprintView[] VALUES = values(); + + public static BlueprintView 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 BlueprintView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.BlueprintView) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequest.java new file mode 100644 index 000000000000..55c973e9014e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ComputeDeploymentStatus`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest} + */ +public final class ComputeDeploymentStatusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) + ComputeDeploymentStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComputeDeploymentStatusRequest.newBuilder() to construct. + private ComputeDeploymentStatusRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeDeploymentStatusRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeDeploymentStatusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest 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 object for `ComputeDeploymentStatus`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + .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. The name of the deployment.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment.
+     * 
+ * + * + * 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. The name of the deployment.
+     * 
+ * + * + * 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. The name of the deployment.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeDeploymentStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequestOrBuilder.java new file mode 100644 index 000000000000..20c2905ff653 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ComputeDeploymentStatusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponse.java new file mode 100644 index 000000000000..762f774fbb6b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponse.java @@ -0,0 +1,1373 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `ComputeDeploymentStatus`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse} + */ +public final class ComputeDeploymentStatusResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) + ComputeDeploymentStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComputeDeploymentStatusResponse.newBuilder() to construct. + private ComputeDeploymentStatusResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeDeploymentStatusResponse() { + name_ = ""; + status_ = 0; + resourceStatuses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeDeploymentStatusResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_ = 0; + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Status getStatus() { + com.google.cloud.telcoautomation.v1alpha1.Status result = + com.google.cloud.telcoautomation.v1alpha1.Status.forNumber(status_); + return result == null ? com.google.cloud.telcoautomation.v1alpha1.Status.UNRECOGNIZED : result; + } + + public static final int RESOURCE_STATUSES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + resourceStatuses_; + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceStatusesList() { + return resourceStatuses_; + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getResourceStatusesOrBuilderList() { + return resourceStatuses_; + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getResourceStatusesCount() { + return resourceStatuses_.size(); + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus getResourceStatuses(int index) { + return resourceStatuses_.get(index); + } + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder + getResourceStatusesOrBuilder(int index) { + return resourceStatuses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (status_ + != com.google.cloud.telcoautomation.v1alpha1.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + for (int i = 0; i < resourceStatuses_.size(); i++) { + output.writeMessage(3, resourceStatuses_.get(i)); + } + 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 (status_ + != com.google.cloud.telcoautomation.v1alpha1.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + } + for (int i = 0; i < resourceStatuses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceStatuses_.get(i)); + } + 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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) obj; + + if (!getName().equals(other.getName())) return false; + if (status_ != other.status_) return false; + if (!getResourceStatusesList().equals(other.getResourceStatusesList())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (getResourceStatusesCount() > 0) { + hash = (37 * hash) + RESOURCE_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getResourceStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse 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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse 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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + 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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse 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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse 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 object for `ComputeDeploymentStatus`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + status_ = 0; + if (resourceStatusesBuilder_ == null) { + resourceStatuses_ = java.util.Collections.emptyList(); + } else { + resourceStatuses_ = null; + resourceStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse result) { + if (resourceStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + resourceStatuses_ = java.util.Collections.unmodifiableList(resourceStatuses_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resourceStatuses_ = resourceStatuses_; + } else { + result.resourceStatuses_ = resourceStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + } + + @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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (resourceStatusesBuilder_ == null) { + if (!other.resourceStatuses_.isEmpty()) { + if (resourceStatuses_.isEmpty()) { + resourceStatuses_ = other.resourceStatuses_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourceStatusesIsMutable(); + resourceStatuses_.addAll(other.resourceStatuses_); + } + onChanged(); + } + } else { + if (!other.resourceStatuses_.isEmpty()) { + if (resourceStatusesBuilder_.isEmpty()) { + resourceStatusesBuilder_.dispose(); + resourceStatusesBuilder_ = null; + resourceStatuses_ = other.resourceStatuses_; + bitField0_ = (bitField0_ & ~0x00000004); + resourceStatusesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceStatusesFieldBuilder() + : null; + } else { + resourceStatusesBuilder_.addAllMessages(other.resourceStatuses_); + } + } + } + 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 16: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.parser(), + extensionRegistry); + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(m); + } else { + resourceStatusesBuilder_.addMessage(m); + } + 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.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Status getStatus() { + com.google.cloud.telcoautomation.v1alpha1.Status result = + com.google.cloud.telcoautomation.v1alpha1.Status.forNumber(status_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.Status.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.telcoautomation.v1alpha1.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Aggregated status of a deployment.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + onChanged(); + return this; + } + + private java.util.List + resourceStatuses_ = java.util.Collections.emptyList(); + + private void ensureResourceStatusesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + resourceStatuses_ = + new java.util.ArrayList( + resourceStatuses_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder> + resourceStatusesBuilder_; + + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceStatusesList() { + if (resourceStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceStatuses_); + } else { + return resourceStatusesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getResourceStatusesCount() { + if (resourceStatusesBuilder_ == null) { + return resourceStatuses_.size(); + } else { + return resourceStatusesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus getResourceStatuses(int index) { + if (resourceStatusesBuilder_ == null) { + return resourceStatuses_.get(index); + } else { + return resourceStatusesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceStatuses( + int index, com.google.cloud.telcoautomation.v1alpha1.ResourceStatus value) { + if (resourceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceStatusesIsMutable(); + resourceStatuses_.set(index, value); + onChanged(); + } else { + resourceStatusesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceStatuses( + int index, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder builderForValue) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus value) { + if (resourceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(value); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + int index, com.google.cloud.telcoautomation.v1alpha1.ResourceStatus value) { + if (resourceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(index, value); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder builderForValue) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(builderForValue.build()); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResourceStatuses( + int index, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder builderForValue) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllResourceStatuses( + java.lang.Iterable + values) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceStatuses_); + onChanged(); + } else { + resourceStatusesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceStatuses() { + if (resourceStatusesBuilder_ == null) { + resourceStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + resourceStatusesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeResourceStatuses(int index) { + if (resourceStatusesBuilder_ == null) { + ensureResourceStatusesIsMutable(); + resourceStatuses_.remove(index); + onChanged(); + } else { + resourceStatusesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder + getResourceStatusesBuilder(int index) { + return getResourceStatusesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder + getResourceStatusesOrBuilder(int index) { + if (resourceStatusesBuilder_ == null) { + return resourceStatuses_.get(index); + } else { + return resourceStatusesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder> + getResourceStatusesOrBuilderList() { + if (resourceStatusesBuilder_ != null) { + return resourceStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceStatuses_); + } + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder + addResourceStatusesBuilder() { + return getResourceStatusesFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder + addResourceStatusesBuilder(int index) { + return getResourceStatusesFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Resource level status details in deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getResourceStatusesBuilderList() { + return getResourceStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder> + getResourceStatusesFieldBuilder() { + if (resourceStatusesBuilder_ == null) { + resourceStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder>( + resourceStatuses_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + resourceStatuses_ = null; + } + return resourceStatusesBuilder_; + } + + @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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeDeploymentStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponseOrBuilder.java new file mode 100644 index 000000000000..827253ec2ec1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ComputeDeploymentStatusResponseOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ComputeDeploymentStatusResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Output only. Aggregated status of a deployment.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.cloud.telcoautomation.v1alpha1.Status getStatus(); + + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceStatusesList(); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus getResourceStatuses(int index); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getResourceStatusesCount(); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getResourceStatusesOrBuilderList(); + /** + * + * + *
+   * Output only. Resource level status details in deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.ResourceStatus resource_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder getResourceStatusesOrBuilder( + int index); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequest.java new file mode 100644 index 000000000000..4f74050987fa --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequest.java @@ -0,0 +1,1132 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `CreateBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest} + */ +public final class CreateBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) + CreateBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateBlueprintRequest.newBuilder() to construct. + private CreateBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateBlueprintRequest() { + parent_ = ""; + blueprintId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 BLUEPRINT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object blueprintId_ = ""; + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blueprintId. + */ + @java.lang.Override + public java.lang.String getBlueprintId() { + java.lang.Object ref = blueprintId_; + 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(); + blueprintId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for blueprintId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlueprintIdBytes() { + java.lang.Object ref = blueprintId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blueprintId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLUEPRINT_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1alpha1.Blueprint blueprint_; + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + @java.lang.Override + public boolean hasBlueprint() { + return blueprint_ != null; + } + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintOrBuilder() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } + + 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(blueprintId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blueprintId_); + } + if (blueprint_ != null) { + output.writeMessage(3, getBlueprint()); + } + 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(blueprintId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blueprintId_); + } + if (blueprint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBlueprint()); + } + 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.telcoautomation.v1alpha1.CreateBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBlueprintId().equals(other.getBlueprintId())) return false; + if (hasBlueprint() != other.hasBlueprint()) return false; + if (hasBlueprint()) { + if (!getBlueprint().equals(other.getBlueprint())) 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) + BLUEPRINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintId().hashCode(); + if (hasBlueprint()) { + hash = (37 * hash) + BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBlueprint().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest 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.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest 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.telcoautomation.v1alpha1.CreateBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest 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.telcoautomation.v1alpha1.CreateBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest 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.telcoautomation.v1alpha1.CreateBlueprintRequest 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 object for `CreateBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + blueprintId_ = ""; + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.blueprintId_ = blueprintId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blueprint_ = blueprintBuilder_ == null ? blueprint_ : blueprintBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.CreateBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBlueprintId().isEmpty()) { + blueprintId_ = other.blueprintId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBlueprint()) { + mergeBlueprint(other.getBlueprint()); + } + 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: + { + blueprintId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getBlueprintFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 blueprintId_ = ""; + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blueprintId. + */ + public java.lang.String getBlueprintId() { + java.lang.Object ref = blueprintId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blueprintId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for blueprintId. + */ + public com.google.protobuf.ByteString getBlueprintIdBytes() { + java.lang.Object ref = blueprintId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blueprintId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The blueprintId to set. + * @return This builder for chaining. + */ + public Builder setBlueprintId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + blueprintId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBlueprintId() { + blueprintId_ = getDefaultInstance().getBlueprintId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the blueprint.
+     * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for blueprintId to set. + * @return This builder for chaining. + */ + public Builder setBlueprintIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + blueprintId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.Blueprint blueprint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + blueprintBuilder_; + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + public boolean hasBlueprint() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint() { + if (blueprintBuilder_ == null) { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } else { + return blueprintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueprint_ = value; + } else { + blueprintBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintBuilder_ == null) { + blueprint_ = builderForValue.build(); + } else { + blueprintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBlueprint(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && blueprint_ != null + && blueprint_ + != com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()) { + getBlueprintBuilder().mergeFrom(value); + } else { + blueprint_ = value; + } + } else { + blueprintBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBlueprint() { + bitField0_ = (bitField0_ & ~0x00000004); + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder getBlueprintBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBlueprintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintOrBuilder() { + if (blueprintBuilder_ != null) { + return blueprintBuilder_.getMessageOrBuilder(); + } else { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } + } + /** + * + * + *
+     * Required. The `Blueprint` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + getBlueprintFieldBuilder() { + if (blueprintBuilder_ == null) { + blueprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder>( + getBlueprint(), getParentForChildren(), isClean()); + blueprint_ = null; + } + return blueprintBuilder_; + } + + @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.telcoautomation.v1alpha1.CreateBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.CreateBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..ccd7fad35890 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateBlueprintRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface CreateBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blueprintId. + */ + java.lang.String getBlueprintId(); + /** + * + * + *
+   * Optional. The name of the blueprint.
+   * 
+ * + * string blueprint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for blueprintId. + */ + com.google.protobuf.ByteString getBlueprintIdBytes(); + + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + boolean hasBlueprint(); + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint(); + /** + * + * + *
+   * Required. The `Blueprint` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequest.java new file mode 100644 index 000000000000..efc7b948923c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequest.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `CreateDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest} + */ +public final class CreateDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) + CreateDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDeploymentRequest.newBuilder() to construct. + private CreateDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDeploymentRequest() { + parent_ = ""; + deploymentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 DEPLOYMENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + @java.lang.Override + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + 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(); + deploymentId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1alpha1.Deployment deployment_; + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return deployment_ != null; + } + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } + + 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(deploymentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deploymentId_); + } + if (deployment_ != null) { + output.writeMessage(3, getDeployment()); + } + 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(deploymentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deploymentId_); + } + if (deployment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeployment()); + } + 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.telcoautomation.v1alpha1.CreateDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDeploymentId().equals(other.getDeploymentId())) return false; + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) 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) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().hashCode(); + if (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest 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.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest 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.telcoautomation.v1alpha1.CreateDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest + 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.telcoautomation.v1alpha1.CreateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest 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.telcoautomation.v1alpha1.CreateDeploymentRequest 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 object for `CreateDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + deploymentId_ = ""; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentId_ = deploymentId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.CreateDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeploymentId().isEmpty()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + 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: + { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 deploymentId_ = ""; + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the deployment.
+     * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + deploymentBuilder_; + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment( + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && deployment_ != null + && deployment_ + != com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000004); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDeploymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } + } + /** + * + * + *
+     * Required. The `Deployment` to create.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + getDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + @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.telcoautomation.v1alpha1.CreateDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.CreateDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..fe57e790f22e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateDeploymentRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface CreateDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + /** + * + * + *
+   * Optional. The name of the deployment.
+   * 
+ * + * string deployment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString getDeploymentIdBytes(); + + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment(); + /** + * + * + *
+   * Required. The `Deployment` to create.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequest.java new file mode 100644 index 000000000000..468c982388f2 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequest.java @@ -0,0 +1,1396 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for creating a EdgeSlm.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest} + */ +public final class CreateEdgeSlmRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) + CreateEdgeSlmRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEdgeSlmRequest.newBuilder() to construct. + private CreateEdgeSlmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEdgeSlmRequest() { + parent_ = ""; + edgeSlmId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEdgeSlmRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * 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. Value for parent.
+   * 
+ * + * + * 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 EDGE_SLM_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object edgeSlmId_ = ""; + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeSlmId. + */ + @java.lang.Override + public java.lang.String getEdgeSlmId() { + java.lang.Object ref = edgeSlmId_; + 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(); + edgeSlmId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeSlmId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEdgeSlmIdBytes() { + java.lang.Object ref = edgeSlmId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + edgeSlmId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EDGE_SLM_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1alpha1.EdgeSlm edgeSlm_; + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the edgeSlm field is set. + */ + @java.lang.Override + public boolean hasEdgeSlm() { + return edgeSlm_ != null; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The edgeSlm. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlm() { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder getEdgeSlmOrBuilder() { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } + + 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
+   * the 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
+   * the 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(edgeSlmId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, edgeSlmId_); + } + if (edgeSlm_ != null) { + output.writeMessage(3, getEdgeSlm()); + } + 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(edgeSlmId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, edgeSlmId_); + } + if (edgeSlm_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEdgeSlm()); + } + 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.telcoautomation.v1alpha1.CreateEdgeSlmRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest other = + (com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getEdgeSlmId().equals(other.getEdgeSlmId())) return false; + if (hasEdgeSlm() != other.hasEdgeSlm()) return false; + if (hasEdgeSlm()) { + if (!getEdgeSlm().equals(other.getEdgeSlm())) 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) + EDGE_SLM_ID_FIELD_NUMBER; + hash = (53 * hash) + getEdgeSlmId().hashCode(); + if (hasEdgeSlm()) { + hash = (37 * hash) + EDGE_SLM_FIELD_NUMBER; + hash = (53 * hash) + getEdgeSlm().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.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest 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.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest 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.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest 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.telcoautomation.v1alpha1.CreateEdgeSlmRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest 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.telcoautomation.v1alpha1.CreateEdgeSlmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for creating a EdgeSlm.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + edgeSlmId_ = ""; + edgeSlm_ = null; + if (edgeSlmBuilder_ != null) { + edgeSlmBuilder_.dispose(); + edgeSlmBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest build() { + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest result = + new com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.edgeSlmId_ = edgeSlmId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.edgeSlm_ = edgeSlmBuilder_ == null ? edgeSlm_ : edgeSlmBuilder_.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.telcoautomation.v1alpha1.CreateEdgeSlmRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEdgeSlmId().isEmpty()) { + edgeSlmId_ = other.edgeSlmId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasEdgeSlm()) { + mergeEdgeSlm(other.getEdgeSlm()); + } + 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: + { + edgeSlmId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEdgeSlmFieldBuilder().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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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 edgeSlmId_ = ""; + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeSlmId. + */ + public java.lang.String getEdgeSlmId() { + java.lang.Object ref = edgeSlmId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + edgeSlmId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeSlmId. + */ + public com.google.protobuf.ByteString getEdgeSlmIdBytes() { + java.lang.Object ref = edgeSlmId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + edgeSlmId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The edgeSlmId to set. + * @return This builder for chaining. + */ + public Builder setEdgeSlmId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + edgeSlmId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEdgeSlmId() { + edgeSlmId_ = getDefaultInstance().getEdgeSlmId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * edge_slm_id from the method_signature of Create RPC
+     * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for edgeSlmId to set. + * @return This builder for chaining. + */ + public Builder setEdgeSlmIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + edgeSlmId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.EdgeSlm edgeSlm_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder> + edgeSlmBuilder_; + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the edgeSlm field is set. + */ + public boolean hasEdgeSlm() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The edgeSlm. + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlm() { + if (edgeSlmBuilder_ == null) { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } else { + return edgeSlmBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEdgeSlm(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm value) { + if (edgeSlmBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + edgeSlm_ = value; + } else { + edgeSlmBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEdgeSlm( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder builderForValue) { + if (edgeSlmBuilder_ == null) { + edgeSlm_ = builderForValue.build(); + } else { + edgeSlmBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEdgeSlm(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm value) { + if (edgeSlmBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && edgeSlm_ != null + && edgeSlm_ != com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance()) { + getEdgeSlmBuilder().mergeFrom(value); + } else { + edgeSlm_ = value; + } + } else { + edgeSlmBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEdgeSlm() { + bitField0_ = (bitField0_ & ~0x00000004); + edgeSlm_ = null; + if (edgeSlmBuilder_ != null) { + edgeSlmBuilder_.dispose(); + edgeSlmBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder getEdgeSlmBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEdgeSlmFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder getEdgeSlmOrBuilder() { + if (edgeSlmBuilder_ != null) { + return edgeSlmBuilder_.getMessageOrBuilder(); + } else { + return edgeSlm_ == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance() + : edgeSlm_; + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder> + getEdgeSlmFieldBuilder() { + if (edgeSlmBuilder_ == null) { + edgeSlmBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder>( + getEdgeSlm(), getParentForChildren(), isClean()); + edgeSlm_ = null; + } + return edgeSlmBuilder_; + } + + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1alpha1.CreateEdgeSlmRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEdgeSlmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.CreateEdgeSlmRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequestOrBuilder.java new file mode 100644 index 000000000000..b1f98078fb4c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateEdgeSlmRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface CreateEdgeSlmRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The edgeSlmId. + */ + java.lang.String getEdgeSlmId(); + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * edge_slm_id from the method_signature of Create RPC
+   * 
+ * + * string edge_slm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for edgeSlmId. + */ + com.google.protobuf.ByteString getEdgeSlmIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the edgeSlm field is set. + */ + boolean hasEdgeSlm(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The edgeSlm. + */ + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlm(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slm = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder getEdgeSlmOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequest.java new file mode 100644 index 000000000000..4af1dda3d50b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequest.java @@ -0,0 +1,1427 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for creating a OrchestrationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest} + */ +public final class CreateOrchestrationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) + CreateOrchestrationClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateOrchestrationClusterRequest.newBuilder() to construct. + private CreateOrchestrationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateOrchestrationClusterRequest() { + parent_ = ""; + orchestrationClusterId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateOrchestrationClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * 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. Value for parent.
+   * 
+ * + * + * 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 ORCHESTRATION_CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object orchestrationClusterId_ = ""; + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The orchestrationClusterId. + */ + @java.lang.Override + public java.lang.String getOrchestrationClusterId() { + java.lang.Object ref = orchestrationClusterId_; + 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(); + orchestrationClusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for orchestrationClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrchestrationClusterIdBytes() { + java.lang.Object ref = orchestrationClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORCHESTRATION_CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestrationCluster_; + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the orchestrationCluster field is set. + */ + @java.lang.Override + public boolean hasOrchestrationCluster() { + return orchestrationCluster_ != null; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The orchestrationCluster. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationCluster() { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder + getOrchestrationClusterOrBuilder() { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } + + 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
+   * the 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
+   * the 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(orchestrationClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orchestrationClusterId_); + } + if (orchestrationCluster_ != null) { + output.writeMessage(3, getOrchestrationCluster()); + } + 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(orchestrationClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orchestrationClusterId_); + } + if (orchestrationCluster_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOrchestrationCluster()); + } + 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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest other = + (com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getOrchestrationClusterId().equals(other.getOrchestrationClusterId())) return false; + if (hasOrchestrationCluster() != other.hasOrchestrationCluster()) return false; + if (hasOrchestrationCluster()) { + if (!getOrchestrationCluster().equals(other.getOrchestrationCluster())) 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) + ORCHESTRATION_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationClusterId().hashCode(); + if (hasOrchestrationCluster()) { + hash = (37 * hash) + ORCHESTRATION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationCluster().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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for creating a OrchestrationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + orchestrationClusterId_ = ""; + orchestrationCluster_ = null; + if (orchestrationClusterBuilder_ != null) { + orchestrationClusterBuilder_.dispose(); + orchestrationClusterBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest build() { + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest result = + new com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orchestrationClusterId_ = orchestrationClusterId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orchestrationCluster_ = + orchestrationClusterBuilder_ == null + ? orchestrationCluster_ + : orchestrationClusterBuilder_.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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrchestrationClusterId().isEmpty()) { + orchestrationClusterId_ = other.orchestrationClusterId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOrchestrationCluster()) { + mergeOrchestrationCluster(other.getOrchestrationCluster()); + } + 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: + { + orchestrationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getOrchestrationClusterFieldBuilder().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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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. Value for parent.
+     * 
+ * + * + * 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 orchestrationClusterId_ = ""; + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The orchestrationClusterId. + */ + public java.lang.String getOrchestrationClusterId() { + java.lang.Object ref = orchestrationClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orchestrationClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for orchestrationClusterId. + */ + public com.google.protobuf.ByteString getOrchestrationClusterIdBytes() { + java.lang.Object ref = orchestrationClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The orchestrationClusterId to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orchestrationClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOrchestrationClusterId() { + orchestrationClusterId_ = getDefaultInstance().getOrchestrationClusterId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Id of the requesting object
+     * If auto-generating Id server-side, remove this field and
+     * orchestration_cluster_id from the method_signature of Create RPC
+     * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for orchestrationClusterId to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orchestrationClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestrationCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder> + orchestrationClusterBuilder_; + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the orchestrationCluster field is set. + */ + public boolean hasOrchestrationCluster() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The orchestrationCluster. + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster + getOrchestrationCluster() { + if (orchestrationClusterBuilder_ == null) { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } else { + return orchestrationClusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster value) { + if (orchestrationClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + orchestrationCluster_ = value; + } else { + orchestrationClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClusterBuilder_ == null) { + orchestrationCluster_ = builderForValue.build(); + } else { + orchestrationClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOrchestrationCluster( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster value) { + if (orchestrationClusterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && orchestrationCluster_ != null + && orchestrationCluster_ + != com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster + .getDefaultInstance()) { + getOrchestrationClusterBuilder().mergeFrom(value); + } else { + orchestrationCluster_ = value; + } + } else { + orchestrationClusterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOrchestrationCluster() { + bitField0_ = (bitField0_ & ~0x00000004); + orchestrationCluster_ = null; + if (orchestrationClusterBuilder_ != null) { + orchestrationClusterBuilder_.dispose(); + orchestrationClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder + getOrchestrationClusterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOrchestrationClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder + getOrchestrationClusterOrBuilder() { + if (orchestrationClusterBuilder_ != null) { + return orchestrationClusterBuilder_.getMessageOrBuilder(); + } else { + return orchestrationCluster_ == null + ? com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance() + : orchestrationCluster_; + } + } + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder> + getOrchestrationClusterFieldBuilder() { + if (orchestrationClusterBuilder_ == null) { + orchestrationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder>( + getOrchestrationCluster(), getParentForChildren(), isClean()); + orchestrationCluster_ = null; + } + return orchestrationClusterBuilder_; + } + + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOrchestrationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..cae666c127bc --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/CreateOrchestrationClusterRequestOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface CreateOrchestrationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Value for parent.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The orchestrationClusterId. + */ + java.lang.String getOrchestrationClusterId(); + /** + * + * + *
+   * Required. Id of the requesting object
+   * If auto-generating Id server-side, remove this field and
+   * orchestration_cluster_id from the method_signature of Create RPC
+   * 
+ * + * string orchestration_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for orchestrationClusterId. + */ + com.google.protobuf.ByteString getOrchestrationClusterIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the orchestrationCluster field is set. + */ + boolean hasOrchestrationCluster(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The orchestrationCluster. + */ + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationCluster(); + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder + getOrchestrationClusterOrBuilder(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequest.java new file mode 100644 index 000000000000..2e8aaa1d5a64 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequest.java @@ -0,0 +1,667 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `DeleteBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest} + */ +public final class DeleteBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) + DeleteBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBlueprintRequest.newBuilder() to construct. + private DeleteBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.DeleteBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) 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.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRequest 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 object for `DeleteBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest.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. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * 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. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * 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. The name of blueprint to delete.
+     * Blueprint name should be in the format {blueprint_id}, if
+     * {blueprint_id}@{revision_id} is passed then the API throws invalid
+     * argument.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.DeleteBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DeleteBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..12a5438a030d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeleteBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of blueprint to delete.
+   * Blueprint name should be in the format {blueprint_id}, if
+   * {blueprint_id}@{revision_id} is passed then the API throws invalid
+   * argument.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequest.java new file mode 100644 index 000000000000..db200136726f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `DeleteBlueprintRevision`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest} + */ +public final class DeleteBlueprintRevisionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) + DeleteBlueprintRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBlueprintRevisionRequest.newBuilder() to construct. + private DeleteBlueprintRevisionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBlueprintRevisionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBlueprintRevisionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint revision in the form
+   * {blueprint_id}@{revision_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint revision in the form
+   * {blueprint_id}@{revision_id}.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest 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 object for `DeleteBlueprintRevision`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + .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. The name of the blueprint revision in the form
+     * {blueprint_id}@{revision_id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint revision in the form
+     * {blueprint_id}@{revision_id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint revision in the form
+     * {blueprint_id}@{revision_id}.
+     * 
+ * + * + * 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. The name of the blueprint revision in the form
+     * {blueprint_id}@{revision_id}.
+     * 
+ * + * + * 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. The name of the blueprint revision in the form
+     * {blueprint_id}@{revision_id}.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBlueprintRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..6d79528fdf3c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteBlueprintRevisionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeleteBlueprintRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint revision in the form
+   * {blueprint_id}@{revision_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint revision in the form
+   * {blueprint_id}@{revision_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequest.java new file mode 100644 index 000000000000..79bc0b3683b5 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `DeleteDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest} + */ +public final class DeleteDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) + DeleteDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDeploymentRequest.newBuilder() to construct. + private DeleteDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of deployment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of deployment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1alpha1.DeleteDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) 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.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest + 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.telcoautomation.v1alpha1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRequest 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 object for `DeleteDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest.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. The name of deployment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of deployment to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of deployment 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. The name of deployment 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. The name of deployment 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; + } + + @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.telcoautomation.v1alpha1.DeleteDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DeleteDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..27844d62b286 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeleteDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of deployment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of deployment to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequest.java new file mode 100644 index 000000000000..f1faf060aee7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `DeleteDeploymentRevision`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest} + */ +public final class DeleteDeploymentRevisionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) + DeleteDeploymentRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDeploymentRevisionRequest.newBuilder() to construct. + private DeleteDeploymentRevisionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDeploymentRevisionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDeploymentRevisionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment revision in the form
+   * {deployment_id}@{revision_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment revision in the form
+   * {deployment_id}@{revision_id}.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest 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 object for `DeleteDeploymentRevision`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + .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. The name of the deployment revision in the form
+     * {deployment_id}@{revision_id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment revision in the form
+     * {deployment_id}@{revision_id}.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment revision in the form
+     * {deployment_id}@{revision_id}.
+     * 
+ * + * + * 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. The name of the deployment revision in the form
+     * {deployment_id}@{revision_id}.
+     * 
+ * + * + * 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. The name of the deployment revision in the form
+     * {deployment_id}@{revision_id}.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeploymentRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..e23d59363339 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteDeploymentRevisionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeleteDeploymentRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment revision in the form
+   * {deployment_id}@{revision_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment revision in the form
+   * {deployment_id}@{revision_id}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequest.java new file mode 100644 index 000000000000..b0f914124cbc --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequest.java @@ -0,0 +1,911 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for deleting a EdgeSlm.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest} + */ +public final class DeleteEdgeSlmRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) + DeleteEdgeSlmRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEdgeSlmRequest.newBuilder() to construct. + private DeleteEdgeSlmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEdgeSlmRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEdgeSlmRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the 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
+   * the 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for deleting a EdgeSlm.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest.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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEdgeSlmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DeleteEdgeSlmRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequestOrBuilder.java new file mode 100644 index 000000000000..c00dacaf1aaa --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteEdgeSlmRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeleteEdgeSlmRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequest.java new file mode 100644 index 000000000000..9f234831c016 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequest.java @@ -0,0 +1,929 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for deleting a OrchestrationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest} + */ +public final class DeleteOrchestrationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) + DeleteOrchestrationClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteOrchestrationClusterRequest.newBuilder() to construct. + private DeleteOrchestrationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteOrchestrationClusterRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteOrchestrationClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the 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
+   * the 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for deleting a OrchestrationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + .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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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
+     * the 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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrchestrationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..c89d9f4f4b1e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeleteOrchestrationClusterRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeleteOrchestrationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional 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
+   * the 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
+   * the 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Deployment.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Deployment.java new file mode 100644 index 000000000000..ab62a5cf9093 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Deployment.java @@ -0,0 +1,3743 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Deployment contains a collection of YAML files (This collection is also known
+ * as package) that can to applied on an orchestration cluster (GKE cluster with
+ * TNA addons).
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.Deployment} + */ +public final class Deployment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + revisionId_ = ""; + sourceBlueprintRevision_ = ""; + state_ = 0; + displayName_ = ""; + repository_ = ""; + files_ = java.util.Collections.emptyList(); + sourceProvider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Deployment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + 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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder.class); + } + + /** + * + * + *
+   * State defines which state the current deployment is in.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.Deployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A deployment starts in DRAFT state. All edits are made in DRAFT state. A
+     * deployment opened for editing after applying will be in draft state,
+     * while its prevision revision will be its current applied version.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * This state means that the contents (YAML files containing kubernetes
+     * resources) of the deployment have been applied to an Orchestration
+     * Cluster. A revision is created when a deployment is applied. This
+     * revision will represent the latest view of what is applied on the cluster
+     * until the deployment is modified and applied again, which will create a
+     * new revision.
+     * 
+ * + * APPLIED = 2; + */ + APPLIED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A deployment starts in DRAFT state. All edits are made in DRAFT state. A
+     * deployment opened for editing after applying will be in draft state,
+     * while its prevision revision will be its current applied version.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
+     * This state means that the contents (YAML files containing kubernetes
+     * resources) of the deployment have been applied to an Orchestration
+     * Cluster. A revision is created when a deployment is applied. This
+     * revision will represent the latest view of what is applied on the cluster
+     * until the deployment is modified and applied again, which will create a
+     * new revision.
+     * 
+ * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return APPLIED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.Deployment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.Deployment.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_BLUEPRINT_REVISION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBlueprintRevision_ = ""; + /** + * + * + *
+   * Required. Immutable. The blueprint revision from which this deployment was
+   * created.
+   * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprintRevision. + */ + @java.lang.Override + public java.lang.String getSourceBlueprintRevision() { + java.lang.Object ref = sourceBlueprintRevision_; + 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(); + sourceBlueprintRevision_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The blueprint revision from which this deployment was
+   * created.
+   * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprintRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBlueprintRevisionBytes() { + java.lang.Object ref = sourceBlueprintRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprintRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp revisionCreateTime_; + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + @java.lang.Override + public boolean hasRevisionCreateTime() { + return revisionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRevisionCreateTime() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment.State getState() { + com.google.cloud.telcoautomation.v1alpha1.Deployment.State result = + com.google.cloud.telcoautomation.v1alpha1.Deployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.State.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object repository_ = ""; + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + 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(); + repository_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List files_; + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.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. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.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 = 11; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.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. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.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 SOURCE_PROVIDER_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + @java.lang.Override + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + 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(); + sourceProvider_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = 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(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprintRevision_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceBlueprintRevision_); + } + if (revisionCreateTime_ != null) { + output.writeMessage(4, getRevisionCreateTime()); + } + if (state_ + != com.google.cloud.telcoautomation.v1alpha1.Deployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, repository_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(8, files_.get(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (createTime_ != null) { + output.writeMessage(10, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(11, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, sourceProvider_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBlueprintRevision_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBlueprintRevision_); + } + if (revisionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRevisionCreateTime()); + } + if (state_ + != com.google.cloud.telcoautomation.v1alpha1.Deployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, repository_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, files_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, sourceProvider_); + } + 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.telcoautomation.v1alpha1.Deployment)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.Deployment other = + (com.google.cloud.telcoautomation.v1alpha1.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getSourceBlueprintRevision().equals(other.getSourceBlueprintRevision())) return false; + if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; + if (hasRevisionCreateTime()) { + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRepository().equals(other.getRepository())) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (!getSourceProvider().equals(other.getSourceProvider())) 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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (37 * hash) + SOURCE_BLUEPRINT_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getSourceBlueprintRevision().hashCode(); + if (hasRevisionCreateTime()) { + hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRevisionCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SOURCE_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvider().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment 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.telcoautomation.v1alpha1.Deployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment 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.telcoautomation.v1alpha1.Deployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment 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.telcoautomation.v1alpha1.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment 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.telcoautomation.v1alpha1.Deployment 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; + } + /** + * + * + *
+   * Deployment contains a collection of YAML files (This collection is also known
+   * as package) that can to applied on an orchestration cluster (GKE cluster with
+   * TNA addons).
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.Deployment) + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 9: + 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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.Deployment.class, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.Deployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + sourceBlueprintRevision_ = ""; + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + state_ = 0; + displayName_ = ""; + repository_ = ""; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + sourceProvider_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment build() { + com.google.cloud.telcoautomation.v1alpha1.Deployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.Deployment result = + new com.google.cloud.telcoautomation.v1alpha1.Deployment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.Deployment result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceBlueprintRevision_ = sourceBlueprintRevision_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.repository_ = repository_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sourceProvider_ = sourceProvider_; + } + } + + @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.telcoautomation.v1alpha1.Deployment) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.Deployment other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSourceBlueprintRevision().isEmpty()) { + sourceBlueprintRevision_ = other.sourceBlueprintRevision_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRevisionCreateTime()) { + mergeRevisionCreateTime(other.getRevisionCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000080); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getSourceProvider().isEmpty()) { + sourceProvider_ = other.sourceProvider_; + bitField0_ |= 0x00000800; + 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: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceBlueprintRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + repository_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.telcoautomation.v1alpha1.File m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + sourceProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + default: + { + 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_ = ""; + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the deployment.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The revision ID of the deployment.
+     * A new revision is committed whenever a change in deployment is applied.
+     * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sourceBlueprintRevision_ = ""; + /** + * + * + *
+     * Required. Immutable. The blueprint revision from which this deployment was
+     * created.
+     * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprintRevision. + */ + public java.lang.String getSourceBlueprintRevision() { + java.lang.Object ref = sourceBlueprintRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBlueprintRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The blueprint revision from which this deployment was
+     * created.
+     * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprintRevision. + */ + public com.google.protobuf.ByteString getSourceBlueprintRevisionBytes() { + java.lang.Object ref = sourceBlueprintRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBlueprintRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The blueprint revision from which this deployment was
+     * created.
+     * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The sourceBlueprintRevision to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprintRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBlueprintRevision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The blueprint revision from which this deployment was
+     * created.
+     * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceBlueprintRevision() { + sourceBlueprintRevision_ = getDefaultInstance().getSourceBlueprintRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The blueprint revision from which this deployment was
+     * created.
+     * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for sourceBlueprintRevision to set. + * @return This builder for chaining. + */ + public Builder setSourceBlueprintRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBlueprintRevision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp revisionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + public boolean hasRevisionCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + public com.google.protobuf.Timestamp getRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } else { + return revisionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revisionCreateTime_ = value; + } else { + revisionCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = builderForValue.build(); + } else { + revisionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRevisionCreateTimeBuilder().mergeFrom(value); + } else { + revisionCreateTime_ = value; + } + } else { + revisionCreateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRevisionCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); + revisionCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRevisionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + if (revisionCreateTimeBuilder_ != null) { + return revisionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + } + /** + * + * + *
+     * Output only. The timestamp that the revision was created.
+     * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRevisionCreateTimeFieldBuilder() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTime_ = null; + } + return revisionCreateTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment.State getState() { + com.google.cloud.telcoautomation.v1alpha1.Deployment.State result = + com.google.cloud.telcoautomation.v1alpha1.Deployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.telcoautomation.v1alpha1.Deployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Human readable name of a Deployment.
+     * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object repository_ = ""; + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + repository_ = getDefaultInstance().getRepository(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the repository where the deployment package files are
+     * stored.
+     * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Files present in a deployment.
+     * When invoking UpdateDeployment API, only the modified files should be
+     * included in this. Files that are not included in the update of a deployment
+     * will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + 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_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000100; + return this; + } + /** + * + * + *
+     * Optional. Labels are key-value attributes that can be set on a deployment
+     * resource by the user.
+     * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + 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. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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. Deployment creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.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. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.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. The timestamp when the deployment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvider_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProvider() { + sourceProvider_ = getDefaultInstance().getSourceProvider(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Source provider is the author of a public blueprint, from
+     * which this deployment is created.
+     * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProvider_ = value; + bitField0_ |= 0x00000800; + 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.telcoautomation.v1alpha1.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.Deployment) + private static final com.google.cloud.telcoautomation.v1alpha1.Deployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.Deployment(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.Deployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Deployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.Deployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java new file mode 100644 index 000000000000..6579c1d687e7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 DeploymentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + private final String deployment; + + @Deprecated + protected DeploymentName() { + project = null; + location = null; + orchestrationCluster = null; + deployment = null; + } + + private DeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeploymentName of( + String project, String location, String orchestrationCluster, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .build(); + } + + public static String format( + String project, String location, String orchestrationCluster, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .build() + .toString(); + } + + public static DeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT.validatedMatch( + formattedString, "DeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("orchestration_cluster"), + matchMap.get("deployment")); + } + + 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 (DeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + if (deployment != null) { + fieldMapBuilder.put("deployment", deployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT.instantiate( + "project", + project, + "location", + location, + "orchestration_cluster", + orchestrationCluster, + "deployment", + deployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeploymentName that = ((DeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster) + && Objects.equals(this.deployment, that.deployment); + } + 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(orchestrationCluster); + h *= 1000003; + h ^= Objects.hashCode(deployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + private String deployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + public Builder setDeployment(String deployment) { + this.deployment = deployment; + return this; + } + + private Builder(DeploymentName deploymentName) { + this.project = deploymentName.project; + this.location = deploymentName.location; + this.orchestrationCluster = deploymentName.orchestrationCluster; + this.deployment = deploymentName.deployment; + } + + public DeploymentName build() { + return new DeploymentName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentOrBuilder.java new file mode 100644 index 000000000000..536bf8dd0a84 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentOrBuilder.java @@ -0,0 +1,477 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the deployment.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Output only. Immutable. The revision ID of the deployment.
+   * A new revision is committed whenever a change in deployment is applied.
+   * 
+ * + * + * string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
+   * Required. Immutable. The blueprint revision from which this deployment was
+   * created.
+   * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The sourceBlueprintRevision. + */ + java.lang.String getSourceBlueprintRevision(); + /** + * + * + *
+   * Required. Immutable. The blueprint revision from which this deployment was
+   * created.
+   * 
+ * + * + * string source_blueprint_revision = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for sourceBlueprintRevision. + */ + com.google.protobuf.ByteString getSourceBlueprintRevisionBytes(); + + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + boolean hasRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + com.google.protobuf.Timestamp getRevisionCreateTime(); + /** + * + * + *
+   * Output only. The timestamp that the revision was created.
+   * 
+ * + * + * .google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1alpha1.Deployment.State getState(); + + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. Human readable name of a Deployment.
+   * 
+ * + * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The repository. + */ + java.lang.String getRepository(); + /** + * + * + *
+   * Output only. Name of the repository where the deployment package files are
+   * stored.
+   * 
+ * + * string repository = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * Optional. Files present in a deployment.
+   * When invoking UpdateDeployment API, only the modified files should be
+   * included in this. Files that are not included in the update of a deployment
+   * will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels are key-value attributes that can be set on a deployment
+   * resource by the user.
+   * 
+ * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Deployment creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The timestamp when the deployment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceProvider. + */ + java.lang.String getSourceProvider(); + /** + * + * + *
+   * Output only. Source provider is the author of a public blueprint, from
+   * which this deployment is created.
+   * 
+ * + * string source_provider = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceProvider. + */ + com.google.protobuf.ByteString getSourceProviderBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentView.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentView.java new file mode 100644 index 000000000000..444cea51b41b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentView.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * DeploymentView defines the type of view of the deployment.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.DeploymentView} + */ +public enum DeploymentView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * DEPLOYMENT_VIEW_UNSPECIFIED = 0; + */ + DEPLOYMENT_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * DEPLOYMENT_VIEW_BASIC = 1; + */ + DEPLOYMENT_VIEW_BASIC(1), + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * DEPLOYMENT_VIEW_FULL = 2; + */ + DEPLOYMENT_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified enum value.
+   * 
+ * + * DEPLOYMENT_VIEW_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * View which only contains metadata.
+   * 
+ * + * DEPLOYMENT_VIEW_BASIC = 1; + */ + public static final int DEPLOYMENT_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * View which contains metadata and files it encapsulates.
+   * 
+ * + * DEPLOYMENT_VIEW_FULL = 2; + */ + public static final int DEPLOYMENT_VIEW_FULL_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 DeploymentView 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 DeploymentView forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_VIEW_UNSPECIFIED; + case 1: + return DEPLOYMENT_VIEW_BASIC; + case 2: + return DEPLOYMENT_VIEW_FULL; + 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 DeploymentView findValueByNumber(int number) { + return DeploymentView.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.telcoautomation.v1alpha1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DeploymentView[] VALUES = values(); + + public static DeploymentView 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 DeploymentView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.DeploymentView) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequest.java new file mode 100644 index 000000000000..f490fb07e419 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `DiscardBlueprintChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest} + */ +public final class DiscardBlueprintChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) + DiscardBlueprintChangesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardBlueprintChangesRequest.newBuilder() to construct. + private DiscardBlueprintChangesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardBlueprintChangesRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardBlueprintChangesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest 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 object for `DiscardBlueprintChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + .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. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the blueprint of which changes are being discarded.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardBlueprintChangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequestOrBuilder.java new file mode 100644 index 000000000000..8b2da63e2cb1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DiscardBlueprintChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint of which changes are being discarded.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponse.java new file mode 100644 index 000000000000..018b8188eca2 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponse.java @@ -0,0 +1,450 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `DiscardBlueprintChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse} + */ +public final class DiscardBlueprintChangesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) + DiscardBlueprintChangesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardBlueprintChangesResponse.newBuilder() to construct. + private DiscardBlueprintChangesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardBlueprintChangesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardBlueprintChangesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse other = + (com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse 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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse 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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + 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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse 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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse 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 object for `DiscardBlueprintChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse build() { + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse result = + new com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + .getDefaultInstance()) return this; + 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; + default: + { + 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; + } + + @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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardBlueprintChangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponseOrBuilder.java new file mode 100644 index 000000000000..91c0396847a4 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardBlueprintChangesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DiscardBlueprintChangesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequest.java new file mode 100644 index 000000000000..abf091849f16 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `DiscardDeploymentChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest} + */ +public final class DiscardDeploymentChangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) + DiscardDeploymentChangesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardDeploymentChangesRequest.newBuilder() to construct. + private DiscardDeploymentChangesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardDeploymentChangesRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardDeploymentChangesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest other = + (com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest 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 object for `DiscardDeploymentChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest build() { + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest result = + new com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + .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. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * 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. The name of the deployment of which changes are being discarded.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardDeploymentChangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequestOrBuilder.java new file mode 100644 index 000000000000..6af14d35e749 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DiscardDeploymentChangesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment of which changes are being discarded.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponse.java new file mode 100644 index 000000000000..47e8de941c68 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponse.java @@ -0,0 +1,455 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `DiscardDeploymentChanges`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse} + */ +public final class DiscardDeploymentChangesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) + DiscardDeploymentChangesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscardDeploymentChangesResponse.newBuilder() to construct. + private DiscardDeploymentChangesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscardDeploymentChangesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscardDeploymentChangesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse other = + (com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + 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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + 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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + 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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + 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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse 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 object for `DiscardDeploymentChanges`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse.class, + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse build() { + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse result = + new com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + .getDefaultInstance()) return this; + 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; + default: + { + 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; + } + + @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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscardDeploymentChangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponseOrBuilder.java new file mode 100644 index 000000000000..049f47b26534 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DiscardDeploymentChangesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface DiscardDeploymentChangesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlm.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlm.java new file mode 100644 index 000000000000..c0d1c6f4e518 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlm.java @@ -0,0 +1,2645 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * EdgeSlm represents an SLM instance which manages the lifecycle of edge
+ * components installed on Workload clusters managed by an Orchestration
+ * Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.EdgeSlm} + */ +public final class EdgeSlm extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.EdgeSlm) + EdgeSlmOrBuilder { + private static final long serialVersionUID = 0L; + // Use EdgeSlm.newBuilder() to construct. + private EdgeSlm(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EdgeSlm() { + name_ = ""; + orchestrationCluster_ = ""; + tnaVersion_ = ""; + state_ = 0; + workloadClusterType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EdgeSlm(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.class, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder.class); + } + + /** + * + * + *
+   * Possible states of the resource.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.EdgeSlm.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * EdgeSlm is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * EdgeSlm has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * EdgeSlm is being deleted.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
+     * EdgeSlm encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * EdgeSlm is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * EdgeSlm has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * EdgeSlm is being deleted.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
+     * EdgeSlm encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.EdgeSlm.State) + } + + /** + * + * + *
+   * Workload clusters supported by TNA. New values will be added to the enum
+   * list as TNA adds supports for new workload clusters in future.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType} + */ + public enum WorkloadClusterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified workload cluster.
+     * 
+ * + * WORKLOAD_CLUSTER_TYPE_UNSPECIFIED = 0; + */ + WORKLOAD_CLUSTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Workload cluster is a GDCE cluster.
+     * 
+ * + * GDCE = 1; + */ + GDCE(1), + /** + * + * + *
+     * Workload cluster is a GKE cluster.
+     * 
+ * + * GKE = 2; + */ + GKE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified workload cluster.
+     * 
+ * + * WORKLOAD_CLUSTER_TYPE_UNSPECIFIED = 0; + */ + public static final int WORKLOAD_CLUSTER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Workload cluster is a GDCE cluster.
+     * 
+ * + * GDCE = 1; + */ + public static final int GDCE_VALUE = 1; + /** + * + * + *
+     * Workload cluster is a GKE cluster.
+     * 
+ * + * GKE = 2; + */ + public static final int GKE_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 WorkloadClusterType 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 WorkloadClusterType forNumber(int value) { + switch (value) { + case 0: + return WORKLOAD_CLUSTER_TYPE_UNSPECIFIED; + case 1: + return GDCE; + case 2: + return GKE; + 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 WorkloadClusterType findValueByNumber(int number) { + return WorkloadClusterType.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.telcoautomation.v1alpha1.EdgeSlm.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final WorkloadClusterType[] VALUES = values(); + + public static WorkloadClusterType 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 WorkloadClusterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORCHESTRATION_CLUSTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orchestrationCluster_ = ""; + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The orchestrationCluster. + */ + @java.lang.Override + public java.lang.String getOrchestrationCluster() { + java.lang.Object ref = orchestrationCluster_; + 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(); + orchestrationCluster_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for orchestrationCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrchestrationClusterBytes() { + java.lang.Object ref = orchestrationCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationCluster_ = 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. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .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. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_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(); + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 TNA_VERSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + @java.lang.Override + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + 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(); + tnaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State getState() { + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State result = + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State.UNRECOGNIZED + : result; + } + + public static final int WORKLOAD_CLUSTER_TYPE_FIELD_NUMBER = 8; + private int workloadClusterType_ = 0; + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadClusterType. + */ + @java.lang.Override + public int getWorkloadClusterTypeValue() { + return workloadClusterType_; + } + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadClusterType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType + getWorkloadClusterType() { + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType result = + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType.forNumber( + workloadClusterType_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType.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(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(orchestrationCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orchestrationCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tnaVersion_); + } + if (state_ + != com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + if (workloadClusterType_ + != com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType + .WORKLOAD_CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, workloadClusterType_); + } + 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(orchestrationCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orchestrationCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tnaVersion_); + } + if (state_ + != com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (workloadClusterType_ + != com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType + .WORKLOAD_CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, workloadClusterType_); + } + 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.telcoautomation.v1alpha1.EdgeSlm)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm other = + (com.google.cloud.telcoautomation.v1alpha1.EdgeSlm) obj; + + if (!getName().equals(other.getName())) return false; + if (!getOrchestrationCluster().equals(other.getOrchestrationCluster())) 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 (!getTnaVersion().equals(other.getTnaVersion())) return false; + if (state_ != other.state_) return false; + if (workloadClusterType_ != other.workloadClusterType_) 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) + ORCHESTRATION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationCluster().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) + TNA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTnaVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + WORKLOAD_CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + workloadClusterType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm 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.telcoautomation.v1alpha1.EdgeSlm parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm 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.telcoautomation.v1alpha1.EdgeSlm parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm 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.telcoautomation.v1alpha1.EdgeSlm parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm 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.telcoautomation.v1alpha1.EdgeSlm 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; + } + /** + * + * + *
+   * EdgeSlm represents an SLM instance which manages the lifecycle of edge
+   * components installed on Workload clusters managed by an Orchestration
+   * Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.EdgeSlm} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.EdgeSlm) + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.class, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + orchestrationCluster_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + tnaVersion_ = ""; + state_ = 0; + workloadClusterType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm build() { + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm result = + new com.google.cloud.telcoautomation.v1alpha1.EdgeSlm(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orchestrationCluster_ = orchestrationCluster_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tnaVersion_ = tnaVersion_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.workloadClusterType_ = workloadClusterType_; + } + } + + @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.telcoautomation.v1alpha1.EdgeSlm) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.EdgeSlm) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrchestrationCluster().isEmpty()) { + orchestrationCluster_ = other.orchestrationCluster_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.getTnaVersion().isEmpty()) { + tnaVersion_ = other.tnaVersion_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.workloadClusterType_ != 0) { + setWorkloadClusterTypeValue(other.getWorkloadClusterTypeValue()); + } + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + orchestrationCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + tnaVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + workloadClusterType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + 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_ = ""; + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the EdgeSlm resource.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object orchestrationCluster_ = ""; + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The orchestrationCluster. + */ + public java.lang.String getOrchestrationCluster() { + java.lang.Object ref = orchestrationCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orchestrationCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for orchestrationCluster. + */ + public com.google.protobuf.ByteString getOrchestrationClusterBytes() { + java.lang.Object ref = orchestrationCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orchestrationCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The orchestrationCluster to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orchestrationCluster_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOrchestrationCluster() { + orchestrationCluster_ = getDefaultInstance().getOrchestrationCluster(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Reference to the orchestration cluster on which templates for
+     * this resources will be applied. This should be of format
+     * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+     * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for orchestrationCluster to set. + * @return This builder for chaining. + */ + public Builder setOrchestrationClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orchestrationCluster_ = value; + bitField0_ |= 0x00000002; + 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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private 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_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. Labels as key value pairs. The key and value should contain
+     * characters which are UTF-8 compliant and less than 50 characters.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tnaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTnaVersion() { + tnaVersion_ = getDefaultInstance().getTnaVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the active TNA version for this resource.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State getState() { + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State result = + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the EdgeSlm resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private int workloadClusterType_ = 0; + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadClusterType. + */ + @java.lang.Override + public int getWorkloadClusterTypeValue() { + return workloadClusterType_; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for workloadClusterType to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterTypeValue(int value) { + workloadClusterType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadClusterType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType + getWorkloadClusterType() { + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType result = + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType.forNumber( + workloadClusterType_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The workloadClusterType to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterType( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + workloadClusterType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of workload cluster for which an EdgeSLM resource is
+     * created.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkloadClusterType() { + bitField0_ = (bitField0_ & ~0x00000080); + workloadClusterType_ = 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.telcoautomation.v1alpha1.EdgeSlm) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.EdgeSlm) + private static final com.google.cloud.telcoautomation.v1alpha1.EdgeSlm DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.EdgeSlm(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EdgeSlm parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.EdgeSlm getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java new file mode 100644 index 000000000000..0e9a8b7e139f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 EdgeSlmName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_EDGE_SLM = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/edgeSlms/{edge_slm}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String edgeSlm; + + @Deprecated + protected EdgeSlmName() { + project = null; + location = null; + edgeSlm = null; + } + + private EdgeSlmName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + edgeSlm = Preconditions.checkNotNull(builder.getEdgeSlm()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEdgeSlm() { + return edgeSlm; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EdgeSlmName of(String project, String location, String edgeSlm) { + return newBuilder().setProject(project).setLocation(location).setEdgeSlm(edgeSlm).build(); + } + + public static String format(String project, String location, String edgeSlm) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEdgeSlm(edgeSlm) + .build() + .toString(); + } + + public static EdgeSlmName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_EDGE_SLM.validatedMatch( + formattedString, "EdgeSlmName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("edge_slm")); + } + + 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 (EdgeSlmName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_EDGE_SLM.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 (edgeSlm != null) { + fieldMapBuilder.put("edge_slm", edgeSlm); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_EDGE_SLM.instantiate( + "project", project, "location", location, "edge_slm", edgeSlm); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EdgeSlmName that = ((EdgeSlmName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.edgeSlm, that.edgeSlm); + } + 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(edgeSlm); + return h; + } + + /** Builder for projects/{project}/locations/{location}/edgeSlms/{edge_slm}. */ + public static class Builder { + private String project; + private String location; + private String edgeSlm; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEdgeSlm() { + return edgeSlm; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEdgeSlm(String edgeSlm) { + this.edgeSlm = edgeSlm; + return this; + } + + private Builder(EdgeSlmName edgeSlmName) { + this.project = edgeSlmName.project; + this.location = edgeSlmName.location; + this.edgeSlm = edgeSlmName.edgeSlm; + } + + public EdgeSlmName build() { + return new EdgeSlmName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmOrBuilder.java new file mode 100644 index 000000000000..2f432e3bd467 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmOrBuilder.java @@ -0,0 +1,307 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface EdgeSlmOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.EdgeSlm) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the EdgeSlm resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The orchestrationCluster. + */ + java.lang.String getOrchestrationCluster(); + /** + * + * + *
+   * Immutable. Reference to the orchestration cluster on which templates for
+   * this resources will be applied. This should be of format
+   * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}.
+   * 
+ * + * + * string orchestration_cluster = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for orchestrationCluster. + */ + com.google.protobuf.ByteString getOrchestrationClusterBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels as key value pairs. The key and value should contain
+   * characters which are UTF-8 compliant and less than 50 characters.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + java.lang.String getTnaVersion(); + /** + * + * + *
+   * Output only. Provides the active TNA version for this resource.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + com.google.protobuf.ByteString getTnaVersionBytes(); + + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the EdgeSlm resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.State getState(); + + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadClusterType. + */ + int getWorkloadClusterTypeValue(); + /** + * + * + *
+   * Optional. Type of workload cluster for which an EdgeSLM resource is
+   * created.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType workload_cluster_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadClusterType. + */ + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.WorkloadClusterType getWorkloadClusterType(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/File.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/File.java new file mode 100644 index 000000000000..21437cd4d528 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/File.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * File represents a yaml file present in a blueprint's package.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.File} + */ +public final class File extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.File) + FileOrBuilder { + private static final long serialVersionUID = 0L; + // Use File.newBuilder() to construct. + private File(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private File() { + path_ = ""; + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new File(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.File.class, + com.google.cloud.telcoautomation.v1alpha1.File.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + 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(); + path_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETED_FIELD_NUMBER = 3; + private boolean deleted_ = false; + /** + * + * + *
+   * Optional. Signifies whether a file is marked for deletion.
+   * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + public static final int EDITABLE_FIELD_NUMBER = 4; + private boolean editable_ = false; + /** + * + * + *
+   * Optional. Indicates whether changes are allowed to a file. If the field is
+   * not set, the file cannot be edited.
+   * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The editable. + */ + @java.lang.Override + public boolean getEditable() { + return editable_; + } + + 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(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); + } + if (deleted_ != false) { + output.writeBool(3, deleted_); + } + if (editable_ != false) { + output.writeBool(4, editable_); + } + 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(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, deleted_); + } + if (editable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, editable_); + } + 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.telcoautomation.v1alpha1.File)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.File other = + (com.google.cloud.telcoautomation.v1alpha1.File) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getContent().equals(other.getContent())) return false; + if (getDeleted() != other.getDeleted()) return false; + if (getEditable() != other.getEditable()) 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) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (37 * hash) + EDITABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEditable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.File parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File 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.telcoautomation.v1alpha1.File parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File 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.telcoautomation.v1alpha1.File parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File 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.telcoautomation.v1alpha1.File parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File 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.telcoautomation.v1alpha1.File 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; + } + /** + * + * + *
+   * File represents a yaml file present in a blueprint's package.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.File} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.File) + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.File.class, + com.google.cloud.telcoautomation.v1alpha1.File.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.File.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + content_ = ""; + deleted_ = false; + editable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_File_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.File getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.File build() { + com.google.cloud.telcoautomation.v1alpha1.File result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.File buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.File result = + new com.google.cloud.telcoautomation.v1alpha1.File(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.File result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deleted_ = deleted_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.editable_ = editable_; + } + } + + @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.telcoautomation.v1alpha1.File) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.File) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.File other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + if (other.getEditable() != false) { + setEditable(other.getEditable()); + } + 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: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + deleted_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + editable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + 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 path_ = ""; + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Path of the file in package.
+     * e.g. `gdce/v1/cluster.yaml`
+     * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The contents of a file in string format.
+     * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean deleted_; + /** + * + * + *
+     * Optional. Signifies whether a file is marked for deletion.
+     * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + /** + * + * + *
+     * Optional. Signifies whether a file is marked for deletion.
+     * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(boolean value) { + + deleted_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Signifies whether a file is marked for deletion.
+     * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeleted() { + bitField0_ = (bitField0_ & ~0x00000004); + deleted_ = false; + onChanged(); + return this; + } + + private boolean editable_; + /** + * + * + *
+     * Optional. Indicates whether changes are allowed to a file. If the field is
+     * not set, the file cannot be edited.
+     * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The editable. + */ + @java.lang.Override + public boolean getEditable() { + return editable_; + } + /** + * + * + *
+     * Optional. Indicates whether changes are allowed to a file. If the field is
+     * not set, the file cannot be edited.
+     * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The editable to set. + * @return This builder for chaining. + */ + public Builder setEditable(boolean value) { + + editable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether changes are allowed to a file. If the field is
+     * not set, the file cannot be edited.
+     * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEditable() { + bitField0_ = (bitField0_ & ~0x00000008); + editable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1alpha1.File) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.File) + private static final com.google.cloud.telcoautomation.v1alpha1.File DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.File(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.File getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.File getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FileOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FileOrBuilder.java new file mode 100644 index 000000000000..22c8199a2f60 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FileOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface FileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.File) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+   * Required. Path of the file in package.
+   * e.g. `gdce/v1/cluster.yaml`
+   * 
+ * + * string path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * + * + *
+   * Optional. The contents of a file in string format.
+   * 
+ * + * string content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
+   * Optional. Signifies whether a file is marked for deletion.
+   * 
+ * + * bool deleted = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleted. + */ + boolean getDeleted(); + + /** + * + * + *
+   * Optional. Indicates whether changes are allowed to a file. If the field is
+   * not set, the file cannot be edited.
+   * 
+ * + * bool editable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The editable. + */ + boolean getEditable(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfig.java new file mode 100644 index 000000000000..4ae94218ba1c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfig.java @@ -0,0 +1,2166 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Configuration of the full (Autopilot) cluster management
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.FullManagementConfig} + */ +public final class FullManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.FullManagementConfig) + FullManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FullManagementConfig.newBuilder() to construct. + private FullManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FullManagementConfig() { + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FullManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.class, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 SUBNET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnet_ = ""; + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + 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(); + subnet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + 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(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_CIDR_BLOCK_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + 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(); + clusterCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_CIDR_BLOCK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + 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(); + servicesCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAMED_RANGE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + @java.lang.Override + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + 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(); + clusterNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_NAMED_RANGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + @java.lang.Override + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + 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(); + servicesNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(8, getMasterAuthorizedNetworksConfig()); + } + 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(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMasterAuthorizedNetworksConfig()); + } + 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.telcoautomation.v1alpha1.FullManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig other = + (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) obj; + + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (!getClusterCidrBlock().equals(other.getClusterCidrBlock())) return false; + if (!getServicesCidrBlock().equals(other.getServicesCidrBlock())) return false; + if (!getClusterNamedRange().equals(other.getClusterNamedRange())) return false; + if (!getServicesNamedRange().equals(other.getServicesNamedRange())) return false; + if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) + return false; + if (hasMasterAuthorizedNetworksConfig()) { + if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) + 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterCidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesCidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getClusterNamedRange().hashCode(); + hash = (37 * hash) + SERVICES_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getServicesNamedRange().hashCode(); + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig 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.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig 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.telcoautomation.v1alpha1.FullManagementConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig 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.telcoautomation.v1alpha1.FullManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig 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.telcoautomation.v1alpha1.FullManagementConfig 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; + } + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.FullManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.FullManagementConfig) + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.class, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig build() { + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig result = + new com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnet_ = subnet_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterCidrBlock_ = clusterCidrBlock_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.servicesCidrBlock_ = servicesCidrBlock_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clusterNamedRange_ = clusterNamedRange_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.servicesNamedRange_ = servicesNamedRange_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.masterAuthorizedNetworksConfig_ = + masterAuthorizedNetworksConfigBuilder_ == null + ? masterAuthorizedNetworksConfig_ + : masterAuthorizedNetworksConfigBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.FullManagementConfig) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance()) + return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnet().isEmpty()) { + subnet_ = other.subnet_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterCidrBlock().isEmpty()) { + clusterCidrBlock_ = other.clusterCidrBlock_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getServicesCidrBlock().isEmpty()) { + servicesCidrBlock_ = other.servicesCidrBlock_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getClusterNamedRange().isEmpty()) { + clusterNamedRange_ = other.clusterNamedRange_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getServicesNamedRange().isEmpty()) { + servicesNamedRange_ = other.servicesNamedRange_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + 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: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + clusterCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + servicesCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + clusterNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + servicesNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + 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 network_ = ""; + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnet_ = ""; + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + subnet_ = getDefaultInstance().getSubnet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterCidrBlock() { + clusterCidrBlock_ = getDefaultInstance().getClusterCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesCidrBlock() { + servicesCidrBlock_ = getDefaultInstance().getServicesCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterNamedRange() { + clusterNamedRange_ = getDefaultInstance().getClusterNamedRange(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesNamedRange() { + servicesNamedRange_ = getDefaultInstance().getServicesNamedRange(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> + masterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder + builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && masterAuthorizedNetworksConfig_ != null + && masterAuthorizedNetworksConfig_ + != com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance()) { + getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + masterAuthorizedNetworksConfig_ = value; + } + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + @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.telcoautomation.v1alpha1.FullManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.FullManagementConfig) + private static final com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FullManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.FullManagementConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfigOrBuilder.java new file mode 100644 index 000000000000..e321fe328098 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/FullManagementConfigOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface FullManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.FullManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + java.lang.String getClusterCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + com.google.protobuf.ByteString getClusterCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + java.lang.String getServicesCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + com.google.protobuf.ByteString getServicesCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + java.lang.String getClusterNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + com.google.protobuf.ByteString getClusterNamedRangeBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + java.lang.String getServicesNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + com.google.protobuf.ByteString getServicesNamedRangeBytes(); + + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequest.java new file mode 100644 index 000000000000..b7112150183a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequest.java @@ -0,0 +1,848 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `GetBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest} + */ +public final class GetBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) + GetBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBlueprintRequest.newBuilder() to construct. + private GetBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBlueprintRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * 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 VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintView getView() { + com.google.cloud.telcoautomation.v1alpha1.BlueprintView result = + com.google.cloud.telcoautomation.v1alpha1.BlueprintView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.BlueprintView.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ + != com.google.cloud.telcoautomation.v1alpha1.BlueprintView.BLUEPRINT_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + 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 (view_ + != com.google.cloud.telcoautomation.v1alpha1.BlueprintView.BLUEPRINT_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + 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.telcoautomation.v1alpha1.GetBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest 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.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest 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.telcoautomation.v1alpha1.GetBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest 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.telcoautomation.v1alpha1.GetBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest 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.telcoautomation.v1alpha1.GetBlueprintRequest 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 object for `GetBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @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.telcoautomation.v1alpha1.GetBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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 16: + { + view_ = input.readEnum(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * 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. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * 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. The name of the blueprint.
+     * Case 1: If the name provided in the request is
+     * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+     * returned. Case 2: If the name provided in the request is {blueprint}, then
+     * the current state of the blueprint is returned.
+     * 
+ * + * + * 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 int view_ = 0; + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintView getView() { + com.google.cloud.telcoautomation.v1alpha1.BlueprintView result = + com.google.cloud.telcoautomation.v1alpha1.BlueprintView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.BlueprintView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.telcoautomation.v1alpha1.BlueprintView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the blueprint.
+     * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 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.telcoautomation.v1alpha1.GetBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.GetBlueprintRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..425e2a94392d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetBlueprintRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface GetBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint.
+   * Case 1: If the name provided in the request is
+   * {blueprint_id}@{revision_id}, then the revision with revision_id will be
+   * returned. Case 2: If the name provided in the request is {blueprint}, then
+   * the current state of the blueprint is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Defines the type of view of the blueprint.
+   * When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.BlueprintView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.telcoautomation.v1alpha1.BlueprintView getView(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequest.java new file mode 100644 index 000000000000..a464db224e63 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequest.java @@ -0,0 +1,857 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `GetDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest} + */ +public final class GetDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) + GetDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDeploymentRequest.newBuilder() to construct. + private GetDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeploymentRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * 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 VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentView getView() { + com.google.cloud.telcoautomation.v1alpha1.DeploymentView result = + com.google.cloud.telcoautomation.v1alpha1.DeploymentView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.DeploymentView.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ + != com.google.cloud.telcoautomation.v1alpha1.DeploymentView.DEPLOYMENT_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + 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 (view_ + != com.google.cloud.telcoautomation.v1alpha1.DeploymentView.DEPLOYMENT_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + 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.telcoautomation.v1alpha1.GetDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) 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) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest 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.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest 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.telcoautomation.v1alpha1.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest 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.telcoautomation.v1alpha1.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest 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.telcoautomation.v1alpha1.GetDeploymentRequest 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 object for `GetDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @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.telcoautomation.v1alpha1.GetDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + 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 16: + { + view_ = input.readEnum(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * 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. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * 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. The name of the deployment.
+     * Case 1: If the name provided in the request is
+     * {deployment_id}@{revision_id}, then the revision with revision_id will be
+     * returned.
+     * Case 2: If the name provided in the request is {deployment}, then
+     * the current state of the deployment is returned.
+     * 
+ * + * + * 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 int view_ = 0; + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentView getView() { + com.google.cloud.telcoautomation.v1alpha1.DeploymentView result = + com.google.cloud.telcoautomation.v1alpha1.DeploymentView.forNumber(view_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.DeploymentView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.telcoautomation.v1alpha1.DeploymentView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the type of view of the deployment.
+     * When field is not present VIEW_BASIC is considered as default.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 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.telcoautomation.v1alpha1.GetDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.GetDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..4680ca29f021 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetDeploymentRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface GetDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment.
+   * Case 1: If the name provided in the request is
+   * {deployment_id}@{revision_id}, then the revision with revision_id will be
+   * returned.
+   * Case 2: If the name provided in the request is {deployment}, then
+   * the current state of the deployment is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Defines the type of view of the deployment.
+   * When field is not present VIEW_BASIC is considered as default.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.DeploymentView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.telcoautomation.v1alpha1.DeploymentView getView(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequest.java new file mode 100644 index 000000000000..8602dc00515e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for getting a EdgeSlm.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest} + */ +public final class GetEdgeSlmRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) + GetEdgeSlmRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEdgeSlmRequest.newBuilder() to construct. + private GetEdgeSlmRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEdgeSlmRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEdgeSlmRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1alpha1.GetEdgeSlmRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest other = + (com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) 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.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest 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.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest 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.telcoautomation.v1alpha1.GetEdgeSlmRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest 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.telcoautomation.v1alpha1.GetEdgeSlmRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest 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.telcoautomation.v1alpha1.GetEdgeSlmRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a EdgeSlm.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest build() { + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest result = + new com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest 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.telcoautomation.v1alpha1.GetEdgeSlmRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest.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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.telcoautomation.v1alpha1.GetEdgeSlmRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEdgeSlmRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.GetEdgeSlmRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequestOrBuilder.java new file mode 100644 index 000000000000..76cfcedb282b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetEdgeSlmRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface GetEdgeSlmRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequest.java new file mode 100644 index 000000000000..938238667dd9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `GetHydratedDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest} + */ +public final class GetHydratedDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) + GetHydratedDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHydratedDeploymentRequest.newBuilder() to construct. + private GetHydratedDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetHydratedDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetHydratedDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the hydrated deployment.
+   * 
+ * + * + * 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 hydrated deployment.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest 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 object for `GetHydratedDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + .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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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 hydrated deployment.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHydratedDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.GetHydratedDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..c8c68321e56e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetHydratedDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface GetHydratedDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the hydrated deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the hydrated deployment.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequest.java new file mode 100644 index 000000000000..30d64fe3ed8e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for getting a OrchestrationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest} + */ +public final class GetOrchestrationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) + GetOrchestrationClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrchestrationClusterRequest.newBuilder() to construct. + private GetOrchestrationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOrchestrationClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOrchestrationClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest other = + (com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for getting a OrchestrationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest build() { + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest result = + new com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + .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 resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrchestrationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.GetOrchestrationClusterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..732e6e55f764 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetOrchestrationClusterRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface GetOrchestrationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequest.java new file mode 100644 index 000000000000..396739ccf95d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequest.java @@ -0,0 +1,650 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `GetPublicBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest} + */ +public final class GetPublicBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) + GetPublicBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPublicBlueprintRequest.newBuilder() to construct. + private GetPublicBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPublicBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPublicBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest 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 object for `GetPublicBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + .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. The name of the public blueprint.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the public blueprint.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the public blueprint.
+     * 
+ * + * + * 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. The name of the public blueprint.
+     * 
+ * + * + * 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. The name of the public blueprint.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.GetPublicBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPublicBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.GetPublicBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..65f838b23d5c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/GetPublicBlueprintRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface GetPublicBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the public blueprint.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeployment.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeployment.java new file mode 100644 index 000000000000..29be6fc4e779 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeployment.java @@ -0,0 +1,1763 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * A collection of kubernetes yaml files which are deployed on a Workload
+ * Cluster. Hydrated Deployments are created by TNA intent based automation.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.HydratedDeployment} + */ +public final class HydratedDeployment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.HydratedDeployment) + HydratedDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + // Use HydratedDeployment.newBuilder() to construct. + private HydratedDeployment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HydratedDeployment() { + name_ = ""; + state_ = 0; + files_ = java.util.Collections.emptyList(); + workloadCluster_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HydratedDeployment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.class, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder.class); + } + + /** + * + * + *
+   * State defines which state the current hydrated deployment is in.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A hydrated deployment starts in DRAFT state. All edits are made in DRAFT
+     * state.
+     * 
+ * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
+     * When the edit is applied, the hydrated deployment moves to APPLIED
+     * state. No changes can be made once a hydrated deployment is applied.
+     * 
+ * + * APPLIED = 2; + */ + APPLIED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A hydrated deployment starts in DRAFT state. All edits are made in DRAFT
+     * state.
+     * 
+ * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
+     * When the edit is applied, the hydrated deployment moves to APPLIED
+     * state. No changes can be made once a hydrated deployment is applied.
+     * 
+ * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return APPLIED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State getState() { + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State result = + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State.UNRECOGNIZED + : result; + } + + public static final int FILES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List files_; + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index) { + return files_.get(index); + } + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index) { + return files_.get(index); + } + + public static final int WORKLOAD_CLUSTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadCluster_ = ""; + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadCluster. + */ + @java.lang.Override + public java.lang.String getWorkloadCluster() { + java.lang.Object ref = workloadCluster_; + 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(); + workloadCluster_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadClusterBytes() { + java.lang.Object ref = workloadCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadCluster_ = 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 (state_ + != com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(3, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workloadCluster_); + } + 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 (state_ + != com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, files_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workloadCluster_); + } + 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.telcoautomation.v1alpha1.HydratedDeployment)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment other = + (com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getFilesList().equals(other.getFilesList())) return false; + if (!getWorkloadCluster().equals(other.getWorkloadCluster())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + WORKLOAD_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadCluster().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment 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.telcoautomation.v1alpha1.HydratedDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment 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.telcoautomation.v1alpha1.HydratedDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment 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.telcoautomation.v1alpha1.HydratedDeployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment 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.telcoautomation.v1alpha1.HydratedDeployment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A collection of kubernetes yaml files which are deployed on a Workload
+   * Cluster. Hydrated Deployments are created by TNA intent based automation.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.HydratedDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.HydratedDeployment) + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.class, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + workloadCluster_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment build() { + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment result = + new com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workloadCluster_ = workloadCluster_; + } + } + + @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.telcoautomation.v1alpha1.HydratedDeployment) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000004); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + if (!other.getWorkloadCluster().isEmpty()) { + workloadCluster_ = other.workloadCluster_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.telcoautomation.v1alpha1.File m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.File.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + workloadCluster_ = 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 name_ = ""; + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the hydrated deployment.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State getState() { + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State result = + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles(int index, com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFiles( + int index, com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles(int index, com.google.cloud.telcoautomation.v1alpha1.File value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFiles( + int index, com.google.cloud.telcoautomation.v1alpha1.File.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder getFilesBuilder(int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder addFilesBuilder() { + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.File.Builder addFilesBuilder(int index) { + return getFilesFieldBuilder() + .addBuilder(index, com.google.cloud.telcoautomation.v1alpha1.File.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. File contents of a hydrated deployment.
+     * When invoking UpdateHydratedBlueprint API, only the modified files should
+     * be included in this. Files that are not included in the update of a
+     * hydrated deployment will not be changed.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.File, + com.google.cloud.telcoautomation.v1alpha1.File.Builder, + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder>( + files_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + private java.lang.Object workloadCluster_ = ""; + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadCluster. + */ + public java.lang.String getWorkloadCluster() { + java.lang.Object ref = workloadCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadCluster. + */ + public com.google.protobuf.ByteString getWorkloadClusterBytes() { + java.lang.Object ref = workloadCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workloadCluster to set. + * @return This builder for chaining. + */ + public Builder setWorkloadCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadCluster_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadCluster() { + workloadCluster_ = getDefaultInstance().getWorkloadCluster(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. WorkloadCluster identifies which workload cluster will the
+     * hydrated deployment will be deployed on.
+     * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workloadCluster to set. + * @return This builder for chaining. + */ + public Builder setWorkloadClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadCluster_ = 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.telcoautomation.v1alpha1.HydratedDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.HydratedDeployment) + private static final com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HydratedDeployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.HydratedDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java new file mode 100644 index 000000000000..4a69139daec6 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java @@ -0,0 +1,308 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 HydratedDeploymentName implements ResourceName { + private static final PathTemplate + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}/hydratedDeployments/{hydrated_deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + private final String deployment; + private final String hydratedDeployment; + + @Deprecated + protected HydratedDeploymentName() { + project = null; + location = null; + orchestrationCluster = null; + deployment = null; + hydratedDeployment = null; + } + + private HydratedDeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + hydratedDeployment = Preconditions.checkNotNull(builder.getHydratedDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public String getHydratedDeployment() { + return hydratedDeployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static HydratedDeploymentName of( + String project, + String location, + String orchestrationCluster, + String deployment, + String hydratedDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .setHydratedDeployment(hydratedDeployment) + .build(); + } + + public static String format( + String project, + String location, + String orchestrationCluster, + String deployment, + String hydratedDeployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .setDeployment(deployment) + .setHydratedDeployment(hydratedDeployment) + .build() + .toString(); + } + + public static HydratedDeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT.validatedMatch( + formattedString, "HydratedDeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("orchestration_cluster"), + matchMap.get("deployment"), + matchMap.get("hydrated_deployment")); + } + + 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 (HydratedDeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + if (deployment != null) { + fieldMapBuilder.put("deployment", deployment); + } + if (hydratedDeployment != null) { + fieldMapBuilder.put("hydrated_deployment", hydratedDeployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER_DEPLOYMENT_HYDRATED_DEPLOYMENT.instantiate( + "project", + project, + "location", + location, + "orchestration_cluster", + orchestrationCluster, + "deployment", + deployment, + "hydrated_deployment", + hydratedDeployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + HydratedDeploymentName that = ((HydratedDeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster) + && Objects.equals(this.deployment, that.deployment) + && Objects.equals(this.hydratedDeployment, that.hydratedDeployment); + } + 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(orchestrationCluster); + h *= 1000003; + h ^= Objects.hashCode(deployment); + h *= 1000003; + h ^= Objects.hashCode(hydratedDeployment); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}/hydratedDeployments/{hydrated_deployment}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + private String deployment; + private String hydratedDeployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public String getDeployment() { + return deployment; + } + + public String getHydratedDeployment() { + return hydratedDeployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + public Builder setDeployment(String deployment) { + this.deployment = deployment; + return this; + } + + public Builder setHydratedDeployment(String hydratedDeployment) { + this.hydratedDeployment = hydratedDeployment; + return this; + } + + private Builder(HydratedDeploymentName hydratedDeploymentName) { + this.project = hydratedDeploymentName.project; + this.location = hydratedDeploymentName.location; + this.orchestrationCluster = hydratedDeploymentName.orchestrationCluster; + this.deployment = hydratedDeploymentName.deployment; + this.hydratedDeployment = hydratedDeploymentName.hydratedDeployment; + } + + public HydratedDeploymentName build() { + return new HydratedDeploymentName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentOrBuilder.java new file mode 100644 index 000000000000..77f43b6ae5bd --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface HydratedDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.HydratedDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The name of the hydrated deployment.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the hydrated deployment (DRAFT, APPLIED).
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.State getState(); + + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFilesList(); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.File getFiles(int index); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilesCount(); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getFilesOrBuilderList(); + /** + * + * + *
+   * Optional. File contents of a hydrated deployment.
+   * When invoking UpdateHydratedBlueprint API, only the modified files should
+   * be included in this. Files that are not included in the update of a
+   * hydrated deployment will not be changed.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.File files = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.FileOrBuilder getFilesOrBuilder(int index); + + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadCluster. + */ + java.lang.String getWorkloadCluster(); + /** + * + * + *
+   * Output only. WorkloadCluster identifies which workload cluster will the
+   * hydrated deployment will be deployed on.
+   * 
+ * + * string workload_cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadCluster. + */ + com.google.protobuf.ByteString getWorkloadClusterBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequest.java new file mode 100644 index 000000000000..bae59a766b16 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequest.java @@ -0,0 +1,936 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ListBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest} + */ +public final class ListBlueprintRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) + ListBlueprintRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintRevisionsRequest.newBuilder() to construct. + private ListBlueprintRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintRevisionsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of revisions to return per page.
+   * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest 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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest 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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + 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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest 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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest 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 object for `ListBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 10: + { + name_ = 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 + default: + { + 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. The name of the blueprint to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint to list revisions for.
+     * 
+ * + * + * 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. The name of the blueprint to list revisions for.
+     * 
+ * + * + * 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. The name of the blueprint to list revisions for.
+     * 
+ * + * + * 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 int pageSize_; + /** + * + * + *
+     * The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of revisions to return per page.
+     * 
+ * + * 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 revisions to return per page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The page token, received from a previous ListBlueprintRevisions call
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..0a8ae071325d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListBlueprintRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The maximum number of revisions to return per page.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The page token, received from a previous ListBlueprintRevisions call
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponse.java new file mode 100644 index 000000000000..fb555786f73d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponse.java @@ -0,0 +1,1153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `ListBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse} + */ +public final class ListBlueprintRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) + ListBlueprintRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintRevisionsResponse.newBuilder() to construct. + private ListBlueprintRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintRevisionsResponse() { + blueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse.Builder.class); + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List blueprints_; + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + return blueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) obj; + + if (!getBlueprintsList().equals(other.getBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse 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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse 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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + 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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse 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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse 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 object for `ListBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + } else { + blueprints_ = null; + blueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse result) { + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse 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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + .getDefaultInstance()) return this; + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlueprintsFieldBuilder() + : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.Blueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.parser(), + extensionRegistry); + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(m); + } else { + blueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List blueprints_ = + java.util.Collections.emptyList(); + + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = + new java.util.ArrayList( + blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + blueprintsBuilder_; + + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder getBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder addBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the blueprint.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder>( + blueprints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..22d9ff25de12 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListBlueprintRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + java.util.List getBlueprintsList(); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + int getBlueprintsCount(); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + * + * + *
+   * The revisions of the blueprint.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequest.java new file mode 100644 index 000000000000..6a6dfd3af74c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequest.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ListBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest} + */ +public final class ListBlueprintsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) + ListBlueprintsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintsRequest.newBuilder() to construct. + private ListBlueprintsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of blueprints to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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_); + } + 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.telcoautomation.v1alpha1.ListBlueprintsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest 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.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest 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.telcoautomation.v1alpha1.ListBlueprintsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest 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.telcoautomation.v1alpha1.ListBlueprintsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest 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.telcoautomation.v1alpha1.ListBlueprintsRequest 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 object for `ListBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1alpha1.ListBlueprintsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 filter_ = ""; + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on blueprint state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of blueprints to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListBlueprints call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1alpha1.ListBlueprintsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListBlueprintsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequestOrBuilder.java new file mode 100644 index 000000000000..8d2c62ddf247 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListBlueprintsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filtering only supports equality on blueprint state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of blueprints to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListBlueprints call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponse.java new file mode 100644 index 000000000000..0c5101306324 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `ListBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse} + */ +public final class ListBlueprintsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse) + ListBlueprintsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBlueprintsResponse.newBuilder() to construct. + private ListBlueprintsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBlueprintsResponse() { + blueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBlueprintsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.Builder.class); + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List blueprints_; + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + return blueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.ListBlueprintsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse) obj; + + if (!getBlueprintsList().equals(other.getBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse 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.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse 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.telcoautomation.v1alpha1.ListBlueprintsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse 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.telcoautomation.v1alpha1.ListBlueprintsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse 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.telcoautomation.v1alpha1.ListBlueprintsResponse 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 object for `ListBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + } else { + blueprints_ = null; + blueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse result) { + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse 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.telcoautomation.v1alpha1.ListBlueprintsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse.getDefaultInstance()) + return this; + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlueprintsFieldBuilder() + : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.Blueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.parser(), + extensionRegistry); + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(m); + } else { + blueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List blueprints_ = + java.util.Collections.emptyList(); + + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = + new java.util.ArrayList( + blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + blueprintsBuilder_; + + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder getBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder addBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprints.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder>( + blueprints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.ListBlueprintsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBlueprintsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListBlueprintsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponseOrBuilder.java new file mode 100644 index 000000000000..69058953518b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListBlueprintsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListBlueprintsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + java.util.List getBlueprintsList(); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + int getBlueprintsCount(); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + * + * + *
+   * The list of requested blueprints.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequest.java new file mode 100644 index 000000000000..6e70e5fcbf2c --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequest.java @@ -0,0 +1,938 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request for listing all revisions of a deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest} + */ +public final class ListDeploymentRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) + ListDeploymentRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentRevisionsRequest.newBuilder() to construct. + private ListDeploymentRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentRevisionsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of revisions to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest 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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest 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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + 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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest 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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest 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 listing all revisions of a deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 10: + { + name_ = 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 + default: + { + 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. The name of the deployment to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to list revisions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the deployment to list revisions for.
+     * 
+ * + * + * 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. The name of the deployment to list revisions for.
+     * 
+ * + * + * 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. The name of the deployment to list revisions for.
+     * 
+ * + * + * 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 int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of revisions to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeploymentRevisions
+     * call Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..5cea9e8a40af --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListDeploymentRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the deployment to list revisions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The maximum number of revisions to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeploymentRevisions
+   * call Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponse.java new file mode 100644 index 000000000000..7f6cfab9ca49 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponse.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * List of deployment revisions for a given deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse} + */ +public final class ListDeploymentRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) + ListDeploymentRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentRevisionsResponse.newBuilder() to construct. + private ListDeploymentRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentRevisionsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse.Builder + .class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse 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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse 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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + 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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse 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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse 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; + } + /** + * + * + *
+   * List of deployment revisions for a given deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse 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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + .getDefaultInstance()) return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.Deployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.Deployment.parser(), + extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList( + deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder getDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder addDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The revisions of the deployment.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..42ce6bffcd13 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListDeploymentRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The revisions of the deployment.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequest.java new file mode 100644 index 000000000000..256c0b9160d9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequest.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ListDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest} + */ +public final class ListDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) + ListDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentsRequest.newBuilder() to construct. + private ListDeploymentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of deployments to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + 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_); + } + 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.telcoautomation.v1alpha1.ListDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest 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.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest 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.telcoautomation.v1alpha1.ListDeploymentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest 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.telcoautomation.v1alpha1.ListDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest 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.telcoautomation.v1alpha1.ListDeploymentsRequest 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 object for `ListDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1alpha1.ListDeploymentsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 filter_ = ""; + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filtering only supports equality on deployment state.
+     * It should be in the form: "state = DRAFT". `OR` operator can be used to
+     * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of deployments to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of deployments to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of deployments to return per page.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListDeployments call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1alpha1.ListDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListDeploymentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..53a35683162a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filtering only supports equality on deployment state.
+   * It should be in the form: "state = DRAFT". `OR` operator can be used to
+   * get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of deployments to return per page.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListDeployments call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponse.java new file mode 100644 index 000000000000..d54249f34edf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponse.java @@ -0,0 +1,1146 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `ListDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse} + */ +public final class ListDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse) + ListDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentsResponse.newBuilder() to construct. + private ListDeploymentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.ListDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse 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.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse 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.telcoautomation.v1alpha1.ListDeploymentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse + 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.telcoautomation.v1alpha1.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse 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.telcoautomation.v1alpha1.ListDeploymentsResponse 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 object for `ListDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse 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.telcoautomation.v1alpha1.ListDeploymentsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse.getDefaultInstance()) + return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.Deployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.Deployment.parser(), + extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList( + deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder getDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder addDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployments.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.ListDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..83f8a15ba8bf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListDeploymentsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of requested deployments.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequest.java new file mode 100644 index 000000000000..77eb1f7360de --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for requesting list of EdgeSlms
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest} + */ +public final class ListEdgeSlmsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) + ListEdgeSlmsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEdgeSlmsRequest.newBuilder() to construct. + private ListEdgeSlmsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEdgeSlmsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEdgeSlmsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * 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; + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Filtering results
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Filtering results
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for requesting list of EdgeSlms
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest.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. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * 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. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * 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. Parent value for ListEdgeSlmsRequest
+     * 
+ * + * + * 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_; + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering results
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Hint for how to order the results
+     * 
+ * + * 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.telcoautomation.v1alpha1.ListEdgeSlmsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEdgeSlmsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListEdgeSlmsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequestOrBuilder.java new file mode 100644 index 000000000000..4078338d3cee --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListEdgeSlmsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value for ListEdgeSlmsRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filtering results
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Hint for how to order the results
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponse.java new file mode 100644 index 000000000000..4d95f8a46f84 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponse.java @@ -0,0 +1,1407 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for response to listing EdgeSlms.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse} + */ +public final class ListEdgeSlmsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse) + ListEdgeSlmsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEdgeSlmsResponse.newBuilder() to construct. + private ListEdgeSlmsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEdgeSlmsResponse() { + edgeSlms_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEdgeSlmsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.Builder.class); + } + + public static final int EDGE_SLMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List edgeSlms_; + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public java.util.List getEdgeSlmsList() { + return edgeSlms_; + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public java.util.List + getEdgeSlmsOrBuilderList() { + return edgeSlms_; + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public int getEdgeSlmsCount() { + return edgeSlms_.size(); + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlms(int index) { + return edgeSlms_.get(index); + } + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder getEdgeSlmsOrBuilder( + int index) { + return edgeSlms_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * 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 < edgeSlms_.size(); i++) { + output.writeMessage(1, edgeSlms_.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 < edgeSlms_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, edgeSlms_.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.telcoautomation.v1alpha1.ListEdgeSlmsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse) obj; + + if (!getEdgeSlmsList().equals(other.getEdgeSlmsList())) 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 (getEdgeSlmsCount() > 0) { + hash = (37 * hash) + EDGE_SLMS_FIELD_NUMBER; + hash = (53 * hash) + getEdgeSlmsList().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.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse 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.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse 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.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse 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.telcoautomation.v1alpha1.ListEdgeSlmsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse 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.telcoautomation.v1alpha1.ListEdgeSlmsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for response to listing EdgeSlms.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (edgeSlmsBuilder_ == null) { + edgeSlms_ = java.util.Collections.emptyList(); + } else { + edgeSlms_ = null; + edgeSlmsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse result) { + if (edgeSlmsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + edgeSlms_ = java.util.Collections.unmodifiableList(edgeSlms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.edgeSlms_ = edgeSlms_; + } else { + result.edgeSlms_ = edgeSlmsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.telcoautomation.v1alpha1.ListEdgeSlmsResponse) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse.getDefaultInstance()) + return this; + if (edgeSlmsBuilder_ == null) { + if (!other.edgeSlms_.isEmpty()) { + if (edgeSlms_.isEmpty()) { + edgeSlms_ = other.edgeSlms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEdgeSlmsIsMutable(); + edgeSlms_.addAll(other.edgeSlms_); + } + onChanged(); + } + } else { + if (!other.edgeSlms_.isEmpty()) { + if (edgeSlmsBuilder_.isEmpty()) { + edgeSlmsBuilder_.dispose(); + edgeSlmsBuilder_ = null; + edgeSlms_ = other.edgeSlms_; + bitField0_ = (bitField0_ & ~0x00000001); + edgeSlmsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEdgeSlmsFieldBuilder() + : null; + } else { + edgeSlmsBuilder_.addAllMessages(other.edgeSlms_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + 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.telcoautomation.v1alpha1.EdgeSlm m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.parser(), + extensionRegistry); + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(m); + } else { + edgeSlmsBuilder_.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 edgeSlms_ = + java.util.Collections.emptyList(); + + private void ensureEdgeSlmsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + edgeSlms_ = + new java.util.ArrayList(edgeSlms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder> + edgeSlmsBuilder_; + + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public java.util.List getEdgeSlmsList() { + if (edgeSlmsBuilder_ == null) { + return java.util.Collections.unmodifiableList(edgeSlms_); + } else { + return edgeSlmsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public int getEdgeSlmsCount() { + if (edgeSlmsBuilder_ == null) { + return edgeSlms_.size(); + } else { + return edgeSlmsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlms(int index) { + if (edgeSlmsBuilder_ == null) { + return edgeSlms_.get(index); + } else { + return edgeSlmsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder setEdgeSlms(int index, com.google.cloud.telcoautomation.v1alpha1.EdgeSlm value) { + if (edgeSlmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeSlmsIsMutable(); + edgeSlms_.set(index, value); + onChanged(); + } else { + edgeSlmsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder setEdgeSlms( + int index, com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder builderForValue) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.set(index, builderForValue.build()); + onChanged(); + } else { + edgeSlmsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm value) { + if (edgeSlmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(value); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms(int index, com.google.cloud.telcoautomation.v1alpha1.EdgeSlm value) { + if (edgeSlmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(index, value); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms( + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder builderForValue) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(builderForValue.build()); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder addEdgeSlms( + int index, com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder builderForValue) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.add(index, builderForValue.build()); + onChanged(); + } else { + edgeSlmsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder addAllEdgeSlms( + java.lang.Iterable values) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, edgeSlms_); + onChanged(); + } else { + edgeSlmsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder clearEdgeSlms() { + if (edgeSlmsBuilder_ == null) { + edgeSlms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + edgeSlmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public Builder removeEdgeSlms(int index) { + if (edgeSlmsBuilder_ == null) { + ensureEdgeSlmsIsMutable(); + edgeSlms_.remove(index); + onChanged(); + } else { + edgeSlmsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder getEdgeSlmsBuilder(int index) { + return getEdgeSlmsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder getEdgeSlmsOrBuilder( + int index) { + if (edgeSlmsBuilder_ == null) { + return edgeSlms_.get(index); + } else { + return edgeSlmsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public java.util.List + getEdgeSlmsOrBuilderList() { + if (edgeSlmsBuilder_ != null) { + return edgeSlmsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(edgeSlms_); + } + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder addEdgeSlmsBuilder() { + return getEdgeSlmsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance()); + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder addEdgeSlmsBuilder(int index) { + return getEdgeSlmsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.getDefaultInstance()); + } + /** + * + * + *
+     * The list of EdgeSlm
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + public java.util.List + getEdgeSlmsBuilderList() { + return getEdgeSlmsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder> + getEdgeSlmsFieldBuilder() { + if (edgeSlmsBuilder_ == null) { + edgeSlmsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm.Builder, + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder>( + edgeSlms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + edgeSlms_ = null; + } + return edgeSlmsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + 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() { + unreachable_.makeImmutable(); + 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); + } + /** + * + * + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + 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); + 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.telcoautomation.v1alpha1.ListEdgeSlmsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEdgeSlmsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListEdgeSlmsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponseOrBuilder.java new file mode 100644 index 000000000000..487fbf51a2f5 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListEdgeSlmsResponseOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListEdgeSlmsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + java.util.List getEdgeSlmsList(); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.EdgeSlm getEdgeSlms(int index); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + int getEdgeSlmsCount(); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + java.util.List + getEdgeSlmsOrBuilderList(); + /** + * + * + *
+   * The list of EdgeSlm
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.EdgeSlm edge_slms = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.EdgeSlmOrBuilder getEdgeSlmsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequest.java new file mode 100644 index 000000000000..59aa8c67cb0b --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ListHydratedDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest} + */ +public final class ListHydratedDeploymentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) + ListHydratedDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHydratedDeploymentsRequest.newBuilder() to construct. + private ListHydratedDeploymentsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHydratedDeploymentsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHydratedDeploymentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The deployment managing the hydrated deployments.
+   * 
+ * + * + * 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 deployment managing the hydrated deployments.
+   * 
+ * + * + * 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; + /** + * + * + *
+   * Optional. The maximum number of hydrated deployments to return. The service
+   * may return fewer than this value. If unspecified, at most 50 hydrated
+   * deployments will be returned. The maximum value is 1000. Values above 1000
+   * will be set to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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_); + } + 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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest 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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest 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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + 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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest 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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest 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 object for `ListHydratedDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest 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_; + } + } + + @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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + .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(); + } + 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 + default: + { + 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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 deployment managing the hydrated deployments.
+     * 
+ * + * + * 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_; + /** + * + * + *
+     * Optional. The maximum number of hydrated deployments to return. The service
+     * may return fewer than this value. If unspecified, at most 50 hydrated
+     * deployments will be returned. The maximum value is 1000. Values above 1000
+     * will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of hydrated deployments to return. The service
+     * may return fewer than this value. If unspecified, at most 50 hydrated
+     * deployments will be returned. The maximum value is 1000. Values above 1000
+     * will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of hydrated deployments to return. The service
+     * may return fewer than this value. If unspecified, at most 50 hydrated
+     * deployments will be returned. The maximum value is 1000. Values above 1000
+     * will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous ListHydratedDeployments
+     * call. Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHydratedDeploymentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..fd6df9cb6054 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListHydratedDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The deployment managing the hydrated deployments.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The deployment managing the hydrated deployments.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of hydrated deployments to return. The service
+   * may return fewer than this value. If unspecified, at most 50 hydrated
+   * deployments will be returned. The maximum value is 1000. Values above 1000
+   * will be set to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous ListHydratedDeployments
+   * call. Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponse.java new file mode 100644 index 000000000000..eb28a43407b8 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponse.java @@ -0,0 +1,1219 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `ListHydratedDeployments`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse} + */ +public final class ListHydratedDeploymentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) + ListHydratedDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHydratedDeploymentsResponse.newBuilder() to construct. + private ListHydratedDeploymentsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHydratedDeploymentsResponse() { + hydratedDeployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHydratedDeploymentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse.Builder + .class); + } + + public static final int HYDRATED_DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + hydratedDeployments_; + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public java.util.List + getHydratedDeploymentsList() { + return hydratedDeployments_; + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder> + getHydratedDeploymentsOrBuilderList() { + return hydratedDeployments_; + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public int getHydratedDeploymentsCount() { + return hydratedDeployments_.size(); + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployments( + int index) { + return hydratedDeployments_.get(index); + } + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder + getHydratedDeploymentsOrBuilder(int index) { + return hydratedDeployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hydratedDeployments_.size(); i++) { + output.writeMessage(1, hydratedDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < hydratedDeployments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, hydratedDeployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) obj; + + if (!getHydratedDeploymentsList().equals(other.getHydratedDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getHydratedDeploymentsCount() > 0) { + hash = (37 * hash) + HYDRATED_DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getHydratedDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse 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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse 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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + 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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse 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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse 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 object for `ListHydratedDeployments`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (hydratedDeploymentsBuilder_ == null) { + hydratedDeployments_ = java.util.Collections.emptyList(); + } else { + hydratedDeployments_ = null; + hydratedDeploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse result) { + if (hydratedDeploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + hydratedDeployments_ = java.util.Collections.unmodifiableList(hydratedDeployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hydratedDeployments_ = hydratedDeployments_; + } else { + result.hydratedDeployments_ = hydratedDeploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse 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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + .getDefaultInstance()) return this; + if (hydratedDeploymentsBuilder_ == null) { + if (!other.hydratedDeployments_.isEmpty()) { + if (hydratedDeployments_.isEmpty()) { + hydratedDeployments_ = other.hydratedDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.addAll(other.hydratedDeployments_); + } + onChanged(); + } + } else { + if (!other.hydratedDeployments_.isEmpty()) { + if (hydratedDeploymentsBuilder_.isEmpty()) { + hydratedDeploymentsBuilder_.dispose(); + hydratedDeploymentsBuilder_ = null; + hydratedDeployments_ = other.hydratedDeployments_; + bitField0_ = (bitField0_ & ~0x00000001); + hydratedDeploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHydratedDeploymentsFieldBuilder() + : null; + } else { + hydratedDeploymentsBuilder_.addAllMessages(other.hydratedDeployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.parser(), + extensionRegistry); + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(m); + } else { + hydratedDeploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + hydratedDeployments_ = java.util.Collections.emptyList(); + + private void ensureHydratedDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hydratedDeployments_ = + new java.util.ArrayList( + hydratedDeployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder> + hydratedDeploymentsBuilder_; + + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public java.util.List + getHydratedDeploymentsList() { + if (hydratedDeploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(hydratedDeployments_); + } else { + return hydratedDeploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public int getHydratedDeploymentsCount() { + if (hydratedDeploymentsBuilder_ == null) { + return hydratedDeployments_.size(); + } else { + return hydratedDeploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployments( + int index) { + if (hydratedDeploymentsBuilder_ == null) { + return hydratedDeployments_.get(index); + } else { + return hydratedDeploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder setHydratedDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment value) { + if (hydratedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.set(index, value); + onChanged(); + } else { + hydratedDeploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder setHydratedDeployments( + int index, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.set(index, builderForValue.build()); + onChanged(); + } else { + hydratedDeploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment value) { + if (hydratedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(value); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment value) { + if (hydratedDeploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(index, value); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(builderForValue.build()); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addHydratedDeployments( + int index, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.add(index, builderForValue.build()); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder addAllHydratedDeployments( + java.lang.Iterable + values) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hydratedDeployments_); + onChanged(); + } else { + hydratedDeploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder clearHydratedDeployments() { + if (hydratedDeploymentsBuilder_ == null) { + hydratedDeployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hydratedDeploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public Builder removeHydratedDeployments(int index) { + if (hydratedDeploymentsBuilder_ == null) { + ensureHydratedDeploymentsIsMutable(); + hydratedDeployments_.remove(index); + onChanged(); + } else { + hydratedDeploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder + getHydratedDeploymentsBuilder(int index) { + return getHydratedDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder + getHydratedDeploymentsOrBuilder(int index) { + if (hydratedDeploymentsBuilder_ == null) { + return hydratedDeployments_.get(index); + } else { + return hydratedDeploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder> + getHydratedDeploymentsOrBuilderList() { + if (hydratedDeploymentsBuilder_ != null) { + return hydratedDeploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hydratedDeployments_); + } + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder + addHydratedDeploymentsBuilder() { + return getHydratedDeploymentsFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder + addHydratedDeploymentsBuilder(int index) { + return getHydratedDeploymentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of hydrated deployments.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + public java.util.List + getHydratedDeploymentsBuilderList() { + return getHydratedDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder> + getHydratedDeploymentsFieldBuilder() { + if (hydratedDeploymentsBuilder_ == null) { + hydratedDeploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder>( + hydratedDeployments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + hydratedDeployments_ = null; + } + return hydratedDeploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHydratedDeploymentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..f112fe381b3e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListHydratedDeploymentsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListHydratedDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + java.util.List + getHydratedDeploymentsList(); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployments(int index); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + int getHydratedDeploymentsCount(); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + java.util.List + getHydratedDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of hydrated deployments.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployments = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder + getHydratedDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequest.java new file mode 100644 index 000000000000..aa33a9b74eb7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequest.java @@ -0,0 +1,1306 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for requesting list of OrchestrationClusters.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest} + */ +public final class ListOrchestrationClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) + ListOrchestrationClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOrchestrationClustersRequest.newBuilder() to construct. + private ListOrchestrationClustersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrchestrationClustersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrchestrationClustersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * 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; + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * 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_ = ""; + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for requesting list of OrchestrationClusters.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + .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. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * 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. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * 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. Parent value for ListOrchestrationClustersRequest
+     * 
+ * + * + * 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_; + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. Server may return fewer items than requested.
+     * If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering results.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * string order_by = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Hint for how to order the results.
+     * 
+ * + * 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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrchestrationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListOrchestrationClustersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequestOrBuilder.java new file mode 100644 index 000000000000..eccfa2d5f5eb --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListOrchestrationClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value for ListOrchestrationClustersRequest
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Requested page size. Server may return fewer items than requested.
+   * If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filtering results.
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Hint for how to order the results.
+   * 
+ * + * string order_by = 5; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponse.java new file mode 100644 index 000000000000..5358a68b51fa --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponse.java @@ -0,0 +1,1495 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Message for response to listing OrchestrationClusters.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse} + */ +public final class ListOrchestrationClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) + ListOrchestrationClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOrchestrationClustersResponse.newBuilder() to construct. + private ListOrchestrationClustersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrchestrationClustersResponse() { + orchestrationClusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrchestrationClustersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse.Builder + .class); + } + + public static final int ORCHESTRATION_CLUSTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + orchestrationClusters_; + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public java.util.List + getOrchestrationClustersList() { + return orchestrationClusters_; + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder> + getOrchestrationClustersOrBuilderList() { + return orchestrationClusters_; + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public int getOrchestrationClustersCount() { + return orchestrationClusters_.size(); + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationClusters( + int index) { + return orchestrationClusters_.get(index); + } + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder + getOrchestrationClustersOrBuilder(int index) { + return orchestrationClusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * 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 < orchestrationClusters_.size(); i++) { + output.writeMessage(1, orchestrationClusters_.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 < orchestrationClusters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, orchestrationClusters_.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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) obj; + + if (!getOrchestrationClustersList().equals(other.getOrchestrationClustersList())) 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 (getOrchestrationClustersCount() > 0) { + hash = (37 * hash) + ORCHESTRATION_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getOrchestrationClustersList().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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + 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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + 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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + 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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + 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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for response to listing OrchestrationClusters.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (orchestrationClustersBuilder_ == null) { + orchestrationClusters_ = java.util.Collections.emptyList(); + } else { + orchestrationClusters_ = null; + orchestrationClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse result) { + if (orchestrationClustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + orchestrationClusters_ = java.util.Collections.unmodifiableList(orchestrationClusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.orchestrationClusters_ = orchestrationClusters_; + } else { + result.orchestrationClusters_ = orchestrationClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + .getDefaultInstance()) return this; + if (orchestrationClustersBuilder_ == null) { + if (!other.orchestrationClusters_.isEmpty()) { + if (orchestrationClusters_.isEmpty()) { + orchestrationClusters_ = other.orchestrationClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.addAll(other.orchestrationClusters_); + } + onChanged(); + } + } else { + if (!other.orchestrationClusters_.isEmpty()) { + if (orchestrationClustersBuilder_.isEmpty()) { + orchestrationClustersBuilder_.dispose(); + orchestrationClustersBuilder_ = null; + orchestrationClusters_ = other.orchestrationClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + orchestrationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrchestrationClustersFieldBuilder() + : null; + } else { + orchestrationClustersBuilder_.addAllMessages(other.orchestrationClusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + 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.telcoautomation.v1alpha1.OrchestrationCluster m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.parser(), + extensionRegistry); + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(m); + } else { + orchestrationClustersBuilder_.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 + orchestrationClusters_ = java.util.Collections.emptyList(); + + private void ensureOrchestrationClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + orchestrationClusters_ = + new java.util.ArrayList( + orchestrationClusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder> + orchestrationClustersBuilder_; + + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public java.util.List + getOrchestrationClustersList() { + if (orchestrationClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(orchestrationClusters_); + } else { + return orchestrationClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public int getOrchestrationClustersCount() { + if (orchestrationClustersBuilder_ == null) { + return orchestrationClusters_.size(); + } else { + return orchestrationClustersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationClusters( + int index) { + if (orchestrationClustersBuilder_ == null) { + return orchestrationClusters_.get(index); + } else { + return orchestrationClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder setOrchestrationClusters( + int index, com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster value) { + if (orchestrationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.set(index, value); + onChanged(); + } else { + orchestrationClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder setOrchestrationClusters( + int index, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + orchestrationClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster value) { + if (orchestrationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(value); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + int index, com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster value) { + if (orchestrationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(index, value); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(builderForValue.build()); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addOrchestrationClusters( + int index, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder builderForValue) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + orchestrationClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder addAllOrchestrationClusters( + java.lang.Iterable + values) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orchestrationClusters_); + onChanged(); + } else { + orchestrationClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder clearOrchestrationClusters() { + if (orchestrationClustersBuilder_ == null) { + orchestrationClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + orchestrationClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public Builder removeOrchestrationClusters(int index) { + if (orchestrationClustersBuilder_ == null) { + ensureOrchestrationClustersIsMutable(); + orchestrationClusters_.remove(index); + onChanged(); + } else { + orchestrationClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder + getOrchestrationClustersBuilder(int index) { + return getOrchestrationClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder + getOrchestrationClustersOrBuilder(int index) { + if (orchestrationClustersBuilder_ == null) { + return orchestrationClusters_.get(index); + } else { + return orchestrationClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder> + getOrchestrationClustersOrBuilderList() { + if (orchestrationClustersBuilder_ != null) { + return orchestrationClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orchestrationClusters_); + } + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder + addOrchestrationClustersBuilder() { + return getOrchestrationClustersFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance()); + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder + addOrchestrationClustersBuilder(int index) { + return getOrchestrationClustersFieldBuilder() + .addBuilder( + index, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance()); + } + /** + * + * + *
+     * The list of OrchestrationCluster
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + public java.util.List + getOrchestrationClustersBuilderList() { + return getOrchestrationClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder> + getOrchestrationClustersFieldBuilder() { + if (orchestrationClustersBuilder_ == null) { + orchestrationClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder>( + orchestrationClusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + orchestrationClusters_ = null; + } + return orchestrationClustersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + 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() { + unreachable_.makeImmutable(); + 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); + } + /** + * + * + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + 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); + 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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrchestrationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListOrchestrationClustersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponseOrBuilder.java new file mode 100644 index 000000000000..2d1af3f26c86 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListOrchestrationClustersResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListOrchestrationClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + java.util.List + getOrchestrationClustersList(); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster getOrchestrationClusters( + int index); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + int getOrchestrationClustersCount(); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + java.util.List + getOrchestrationClustersOrBuilderList(); + /** + * + * + *
+   * The list of OrchestrationCluster
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster orchestration_clusters = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder + getOrchestrationClustersOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequest.java new file mode 100644 index 000000000000..8b34d4660a13 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequest.java @@ -0,0 +1,943 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ListPublicBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest} + */ +public final class ListPublicBlueprintsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) + ListPublicBlueprintsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPublicBlueprintsRequest.newBuilder() to construct. + private ListPublicBlueprintsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPublicBlueprintsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPublicBlueprintsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_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; + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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_); + } + 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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest 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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest 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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + 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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest 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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest 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 object for `ListPublicBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest 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_; + } + } + + @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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + .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(); + } + 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 + default: + { + 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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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. Parent value of public blueprint.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_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_; + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + @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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublicBlueprintsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListPublicBlueprintsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequestOrBuilder.java new file mode 100644 index 000000000000..473c04836e2f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListPublicBlueprintsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent value of public blueprint.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponse.java new file mode 100644 index 000000000000..e7b839faf5e1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponse.java @@ -0,0 +1,1187 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `ListPublicBlueprints`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse} + */ +public final class ListPublicBlueprintsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) + ListPublicBlueprintsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPublicBlueprintsResponse.newBuilder() to construct. + private ListPublicBlueprintsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPublicBlueprintsResponse() { + publicBlueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPublicBlueprintsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse.Builder.class); + } + + public static final int PUBLIC_BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + publicBlueprints_; + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + @java.lang.Override + public java.util.List + getPublicBlueprintsList() { + return publicBlueprints_; + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder> + getPublicBlueprintsOrBuilderList() { + return publicBlueprints_; + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + @java.lang.Override + public int getPublicBlueprintsCount() { + return publicBlueprints_.size(); + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getPublicBlueprints(int index) { + return publicBlueprints_.get(index); + } + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder + getPublicBlueprintsOrBuilder(int index) { + return publicBlueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < publicBlueprints_.size(); i++) { + output.writeMessage(1, publicBlueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < publicBlueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, publicBlueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) obj; + + if (!getPublicBlueprintsList().equals(other.getPublicBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getPublicBlueprintsCount() > 0) { + hash = (37 * hash) + PUBLIC_BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getPublicBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse 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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse 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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + 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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse 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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse 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 object for `ListPublicBlueprints`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (publicBlueprintsBuilder_ == null) { + publicBlueprints_ = java.util.Collections.emptyList(); + } else { + publicBlueprints_ = null; + publicBlueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse result) { + if (publicBlueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + publicBlueprints_ = java.util.Collections.unmodifiableList(publicBlueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.publicBlueprints_ = publicBlueprints_; + } else { + result.publicBlueprints_ = publicBlueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse 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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + .getDefaultInstance()) return this; + if (publicBlueprintsBuilder_ == null) { + if (!other.publicBlueprints_.isEmpty()) { + if (publicBlueprints_.isEmpty()) { + publicBlueprints_ = other.publicBlueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.addAll(other.publicBlueprints_); + } + onChanged(); + } + } else { + if (!other.publicBlueprints_.isEmpty()) { + if (publicBlueprintsBuilder_.isEmpty()) { + publicBlueprintsBuilder_.dispose(); + publicBlueprintsBuilder_ = null; + publicBlueprints_ = other.publicBlueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + publicBlueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPublicBlueprintsFieldBuilder() + : null; + } else { + publicBlueprintsBuilder_.addAllMessages(other.publicBlueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.parser(), + extensionRegistry); + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(m); + } else { + publicBlueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List + publicBlueprints_ = java.util.Collections.emptyList(); + + private void ensurePublicBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + publicBlueprints_ = + new java.util.ArrayList( + publicBlueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder> + publicBlueprintsBuilder_; + + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public java.util.List + getPublicBlueprintsList() { + if (publicBlueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(publicBlueprints_); + } else { + return publicBlueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public int getPublicBlueprintsCount() { + if (publicBlueprintsBuilder_ == null) { + return publicBlueprints_.size(); + } else { + return publicBlueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getPublicBlueprints( + int index) { + if (publicBlueprintsBuilder_ == null) { + return publicBlueprints_.get(index); + } else { + return publicBlueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder setPublicBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint value) { + if (publicBlueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.set(index, value); + onChanged(); + } else { + publicBlueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder setPublicBlueprints( + int index, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder builderForValue) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + publicBlueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder addPublicBlueprints( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint value) { + if (publicBlueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(value); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder addPublicBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint value) { + if (publicBlueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(index, value); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder addPublicBlueprints( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder builderForValue) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(builderForValue.build()); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder addPublicBlueprints( + int index, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder builderForValue) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + publicBlueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder addAllPublicBlueprints( + java.lang.Iterable + values) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicBlueprints_); + onChanged(); + } else { + publicBlueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder clearPublicBlueprints() { + if (publicBlueprintsBuilder_ == null) { + publicBlueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + publicBlueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public Builder removePublicBlueprints(int index) { + if (publicBlueprintsBuilder_ == null) { + ensurePublicBlueprintsIsMutable(); + publicBlueprints_.remove(index); + onChanged(); + } else { + publicBlueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder + getPublicBlueprintsBuilder(int index) { + return getPublicBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder + getPublicBlueprintsOrBuilder(int index) { + if (publicBlueprintsBuilder_ == null) { + return publicBlueprints_.get(index); + } else { + return publicBlueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder> + getPublicBlueprintsOrBuilderList() { + if (publicBlueprintsBuilder_ != null) { + return publicBlueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publicBlueprints_); + } + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder + addPublicBlueprintsBuilder() { + return getPublicBlueprintsFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder + addPublicBlueprintsBuilder(int index) { + return getPublicBlueprintsFieldBuilder() + .addBuilder( + index, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of public blueprints to return.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + public java.util.List + getPublicBlueprintsBuilderList() { + return getPublicBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder> + getPublicBlueprintsFieldBuilder() { + if (publicBlueprintsBuilder_ == null) { + publicBlueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder>( + publicBlueprints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + publicBlueprints_ = null; + } + return publicBlueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A token identifying a page of results the server should
+     * return.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + @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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublicBlueprintsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ListPublicBlueprintsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponseOrBuilder.java new file mode 100644 index 000000000000..b75b84e9dd8f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ListPublicBlueprintsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ListPublicBlueprintsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + java.util.List + getPublicBlueprintsList(); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getPublicBlueprints(int index); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + int getPublicBlueprintsCount(); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + java.util.List + getPublicBlueprintsOrBuilderList(); + /** + * + * + *
+   * The list of public blueprints to return.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.PublicBlueprint public_blueprints = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder getPublicBlueprintsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Output only. A token identifying a page of results the server should
+   * return.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java new file mode 100644 index 000000000000..f562bdb58813 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfig.java new file mode 100644 index 000000000000..c00bb4e41184 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfig.java @@ -0,0 +1,1191 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Configuration of the cluster management
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ManagementConfig} + */ +public final class ManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ManagementConfig) + ManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagementConfig.newBuilder() to construct. + private ManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagementConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.class, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder.class); + } + + private int oneofConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneofConfig_; + + public enum OneofConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STANDARD_MANAGEMENT_CONFIG(1), + FULL_MANAGEMENT_CONFIG(2), + ONEOFCONFIG_NOT_SET(0); + private final int value; + + private OneofConfigCase(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 OneofConfigCase valueOf(int value) { + return forNumber(value); + } + + public static OneofConfigCase forNumber(int value) { + switch (value) { + case 1: + return STANDARD_MANAGEMENT_CONFIG; + case 2: + return FULL_MANAGEMENT_CONFIG; + case 0: + return ONEOFCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneofConfigCase getOneofConfigCase() { + return OneofConfigCase.forNumber(oneofConfigCase_); + } + + public static final int STANDARD_MANAGEMENT_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + * + * @return Whether the standardManagementConfig field is set. + */ + @java.lang.Override + public boolean hasStandardManagementConfig() { + return oneofConfigCase_ == 1; + } + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + * + * @return The standardManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + getStandardManagementConfig() { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder + getStandardManagementConfigOrBuilder() { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.getDefaultInstance(); + } + + public static final int FULL_MANAGEMENT_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + * + * @return Whether the fullManagementConfig field is set. + */ + @java.lang.Override + public boolean hasFullManagementConfig() { + return oneofConfigCase_ == 2; + } + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + * + * @return The fullManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig getFullManagementConfig() { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder + getFullManagementConfigOrBuilder() { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } + + 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 (oneofConfigCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_); + } + if (oneofConfigCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneofConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_); + } + if (oneofConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_); + } + 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.telcoautomation.v1alpha1.ManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig other = + (com.google.cloud.telcoautomation.v1alpha1.ManagementConfig) obj; + + if (!getOneofConfigCase().equals(other.getOneofConfigCase())) return false; + switch (oneofConfigCase_) { + case 1: + if (!getStandardManagementConfig().equals(other.getStandardManagementConfig())) + return false; + break; + case 2: + if (!getFullManagementConfig().equals(other.getFullManagementConfig())) 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(); + switch (oneofConfigCase_) { + case 1: + hash = (37 * hash) + STANDARD_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStandardManagementConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + FULL_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFullManagementConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig 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.telcoautomation.v1alpha1.ManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig 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.telcoautomation.v1alpha1.ManagementConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig 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.telcoautomation.v1alpha1.ManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig 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.telcoautomation.v1alpha1.ManagementConfig 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; + } + /** + * + * + *
+   * Configuration of the cluster management
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ManagementConfig) + com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.class, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (standardManagementConfigBuilder_ != null) { + standardManagementConfigBuilder_.clear(); + } + if (fullManagementConfigBuilder_ != null) { + fullManagementConfigBuilder_.clear(); + } + oneofConfigCase_ = 0; + oneofConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfig getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfig build() { + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfig buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig result = + new com.google.cloud.telcoautomation.v1alpha1.ManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.ManagementConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig result) { + result.oneofConfigCase_ = oneofConfigCase_; + result.oneofConfig_ = this.oneofConfig_; + if (oneofConfigCase_ == 1 && standardManagementConfigBuilder_ != null) { + result.oneofConfig_ = standardManagementConfigBuilder_.build(); + } + if (oneofConfigCase_ == 2 && fullManagementConfigBuilder_ != null) { + result.oneofConfig_ = fullManagementConfigBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.ManagementConfig) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.ManagementConfig other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.getDefaultInstance()) + return this; + switch (other.getOneofConfigCase()) { + case STANDARD_MANAGEMENT_CONFIG: + { + mergeStandardManagementConfig(other.getStandardManagementConfig()); + break; + } + case FULL_MANAGEMENT_CONFIG: + { + mergeFullManagementConfig(other.getFullManagementConfig()); + break; + } + case ONEOFCONFIG_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: + { + input.readMessage( + getStandardManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + oneofConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getFullManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + oneofConfigCase_ = 2; + 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 oneofConfigCase_ = 0; + private java.lang.Object oneofConfig_; + + public OneofConfigCase getOneofConfigCase() { + return OneofConfigCase.forNumber(oneofConfigCase_); + } + + public Builder clearOneofConfig() { + oneofConfigCase_ = 0; + oneofConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder> + standardManagementConfigBuilder_; + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + * + * @return Whether the standardManagementConfig field is set. + */ + @java.lang.Override + public boolean hasStandardManagementConfig() { + return oneofConfigCase_ == 1; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + * + * @return The standardManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + getStandardManagementConfig() { + if (standardManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance(); + } else { + if (oneofConfigCase_ == 1) { + return standardManagementConfigBuilder_.getMessage(); + } + return com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder setStandardManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig value) { + if (standardManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneofConfig_ = value; + onChanged(); + } else { + standardManagementConfigBuilder_.setMessage(value); + } + oneofConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder setStandardManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder + builderForValue) { + if (standardManagementConfigBuilder_ == null) { + oneofConfig_ = builderForValue.build(); + onChanged(); + } else { + standardManagementConfigBuilder_.setMessage(builderForValue.build()); + } + oneofConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder mergeStandardManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig value) { + if (standardManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 1 + && oneofConfig_ + != com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance()) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.newBuilder( + (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) + oneofConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + oneofConfig_ = value; + } + onChanged(); + } else { + if (oneofConfigCase_ == 1) { + standardManagementConfigBuilder_.mergeFrom(value); + } else { + standardManagementConfigBuilder_.setMessage(value); + } + } + oneofConfigCase_ = 1; + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + public Builder clearStandardManagementConfig() { + if (standardManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 1) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + onChanged(); + } + } else { + if (oneofConfigCase_ == 1) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + } + standardManagementConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder + getStandardManagementConfigBuilder() { + return getStandardManagementConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder + getStandardManagementConfigOrBuilder() { + if ((oneofConfigCase_ == 1) && (standardManagementConfigBuilder_ != null)) { + return standardManagementConfigBuilder_.getMessageOrBuilder(); + } else { + if (oneofConfigCase_ == 1) { + return (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the standard (GKE) cluster management
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder> + getStandardManagementConfigFieldBuilder() { + if (standardManagementConfigBuilder_ == null) { + if (!(oneofConfigCase_ == 1)) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance(); + } + standardManagementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder>( + (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) oneofConfig_, + getParentForChildren(), + isClean()); + oneofConfig_ = null; + } + oneofConfigCase_ = 1; + onChanged(); + return standardManagementConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder> + fullManagementConfigBuilder_; + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + * + * @return Whether the fullManagementConfig field is set. + */ + @java.lang.Override + public boolean hasFullManagementConfig() { + return oneofConfigCase_ == 2; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + * + * @return The fullManagementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig + getFullManagementConfig() { + if (fullManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } else { + if (oneofConfigCase_ == 2) { + return fullManagementConfigBuilder_.getMessage(); + } + return com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + public Builder setFullManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig value) { + if (fullManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneofConfig_ = value; + onChanged(); + } else { + fullManagementConfigBuilder_.setMessage(value); + } + oneofConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + public Builder setFullManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder builderForValue) { + if (fullManagementConfigBuilder_ == null) { + oneofConfig_ = builderForValue.build(); + onChanged(); + } else { + fullManagementConfigBuilder_.setMessage(builderForValue.build()); + } + oneofConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + public Builder mergeFullManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig value) { + if (fullManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 2 + && oneofConfig_ + != com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig + .getDefaultInstance()) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.newBuilder( + (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + oneofConfig_ = value; + } + onChanged(); + } else { + if (oneofConfigCase_ == 2) { + fullManagementConfigBuilder_.mergeFrom(value); + } else { + fullManagementConfigBuilder_.setMessage(value); + } + } + oneofConfigCase_ = 2; + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + public Builder clearFullManagementConfig() { + if (fullManagementConfigBuilder_ == null) { + if (oneofConfigCase_ == 2) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + onChanged(); + } + } else { + if (oneofConfigCase_ == 2) { + oneofConfigCase_ = 0; + oneofConfig_ = null; + } + fullManagementConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder + getFullManagementConfigBuilder() { + return getFullManagementConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder + getFullManagementConfigOrBuilder() { + if ((oneofConfigCase_ == 2) && (fullManagementConfigBuilder_ != null)) { + return fullManagementConfigBuilder_.getMessageOrBuilder(); + } else { + if (oneofConfigCase_ == 2) { + return (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_; + } + return com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration of the full (Autopilot) cluster management. Full cluster
+     * management is a preview feature.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder> + getFullManagementConfigFieldBuilder() { + if (fullManagementConfigBuilder_ == null) { + if (!(oneofConfigCase_ == 2)) { + oneofConfig_ = + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.getDefaultInstance(); + } + fullManagementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder>( + (com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig) oneofConfig_, + getParentForChildren(), + isClean()); + oneofConfig_ = null; + } + oneofConfigCase_ = 2; + onChanged(); + return fullManagementConfigBuilder_; + } + + @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.telcoautomation.v1alpha1.ManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ManagementConfig) + private static final com.google.cloud.telcoautomation.v1alpha1.ManagementConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ManagementConfig(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfigOrBuilder.java new file mode 100644 index 000000000000..9a1b79720c25 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ManagementConfigOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + * + * @return Whether the standardManagementConfig field is set. + */ + boolean hasStandardManagementConfig(); + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + * + * @return The standardManagementConfig. + */ + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig getStandardManagementConfig(); + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.StandardManagementConfig standard_management_config = 1; + * + */ + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder + getStandardManagementConfigOrBuilder(); + + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + * + * @return Whether the fullManagementConfig field is set. + */ + boolean hasFullManagementConfig(); + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + * + * @return The fullManagementConfig. + */ + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfig getFullManagementConfig(); + /** + * + * + *
+   * Configuration of the full (Autopilot) cluster management. Full cluster
+   * management is a preview feature.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.FullManagementConfig full_management_config = 2; + * + */ + com.google.cloud.telcoautomation.v1alpha1.FullManagementConfigOrBuilder + getFullManagementConfigOrBuilder(); + + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.OneofConfigCase getOneofConfigCase(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 000000000000..4b79bc11b03a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,2002 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Configuration of the Master Authorized Network that support multiple CIDRs
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) + MasterAuthorizedNetworksConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. + private MasterAuthorizedNetworksConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MasterAuthorizedNetworksConfig() { + cidrBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MasterAuthorizedNetworksConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.class, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidrBlock. + */ + java.lang.String getCidrBlock(); + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidrBlock. + */ + com.google.protobuf.ByteString getCidrBlockBytes(); + } + /** + * + * + *
+   * CidrBlock contains an optional name and one CIDR block.
+   * 
+ * + * Protobuf type {@code + * google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + CidrBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use CidrBlock.newBuilder() to construct. + private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CidrBlock() { + displayName_ = ""; + cidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CidrBlock(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .class, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. display_name is an optional field for users to identify CIDR
+     * blocks.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_BLOCK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidrBlock. + */ + @java.lang.Override + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + 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(); + cidrBlock_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. cidr_block must be specified in CIDR notation when using
+     * master_authorized_networks_config. Currently, the user could still use
+     * the deprecated man_block field, so this field is currently optional, but
+     * will be required in the future.
+     * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock other = + (com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getCidrBlock().equals(other.getCidrBlock())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlock().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + 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; + } + /** + * + * + *
+     * CidrBlock contains an optional name and one CIDR block.
+     * 
+ * + * Protobuf type {@code + * google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .class, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + cidrBlock_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + build() { + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock result = + new com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cidrBlock_ = cidrBlock_; + } + } + + @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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cidrBlock_ = 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 displayName_ = ""; + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. display_name is an optional field for users to identify CIDR
+       * blocks.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cidrBlock. + */ + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidrBlock_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCidrBlock() { + cidrBlock_ = getDefaultInstance().getCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. cidr_block must be specified in CIDR notation when using
+       * master_authorized_networks_config. Currently, the user could still use
+       * the deprecated man_block field, so this field is currently optional, but
+       * will be required in the future.
+       * 
+ * + * string cidr_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cidrBlock_ = 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlock + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CidrBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock> + cidrBlocks_; + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock> + getCidrBlocksList() { + return cidrBlocks_; + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + getCidrBlocks(int index) { + return cidrBlocks_.get(index); + } + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + return cidrBlocks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < cidrBlocks_.size(); i++) { + output.writeMessage(1, cidrBlocks_.get(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 < cidrBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cidrBlocks_.get(i)); + } + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig other = + (com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) obj; + + if (!getCidrBlocksList().equals(other.getCidrBlocksList())) 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 (getCidrBlocksCount() > 0) { + hash = (37 * hash) + CIDR_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlocksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig 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; + } + /** + * + * + *
+   * Configuration of the Master Authorized Network that support multiple CIDRs
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.class, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + } else { + cidrBlocks_ = null; + cidrBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig build() { + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig result = + new com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig result) { + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance()) return this; + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCidrBlocksFieldBuilder() + : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + 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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlock.parser(), + extensionRegistry); + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(m); + } else { + cidrBlocksBuilder_.addMessage(m); + } + 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.util.List< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock> + cidrBlocks_ = java.util.Collections.emptyList(); + + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = + new java.util.ArrayList< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock>( + cidrBlocks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder> + cidrBlocksBuilder_; + + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock> + getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + getCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCidrBlocks( + int index, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCidrBlocks( + java.lang.Iterable< + ? extends + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlock> + values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder + getCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder + addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder() + .addBuilder( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder + addCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder() + .addBuilder( + index, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * Optional. cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder> + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock + .Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder>( + cidrBlocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + + @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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) + private static final com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuthorizedNetworksConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 000000000000..a05668422cec --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface MasterAuthorizedNetworksConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCidrBlocksList(); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCidrBlocksCount(); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .CidrBlockOrBuilder> + getCidrBlocksOrBuilderList(); + /** + * + * + *
+   * Optional. cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadata.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadata.java new file mode 100644 index 000000000000..4f0f57171f01 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadata.java @@ -0,0 +1,1829 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.OperationMetadata} + */ +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.OperationMetadata) + OperationMetadataOrBuilder { + 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_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.OperationMetadata.class, + com.google.cloud.telcoautomation.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]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * + * + * @return The createTime. + */ + @java.lang.Override + 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]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + 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]; + * + * + * @return The endTime. + */ + @java.lang.Override + 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]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + 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 + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + 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() { + 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); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + 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(); + 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() { + 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); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + 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(); + 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() { + 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); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + 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 + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + 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() { + 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); + apiVersion_ = 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 (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + 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.telcoautomation.v1alpha1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.OperationMetadata other = + (com.google.cloud.telcoautomation.v1alpha1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (!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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().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 = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OperationMetadata 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.telcoautomation.v1alpha1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.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.telcoautomation.v1alpha1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OperationMetadata 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.telcoautomation.v1alpha1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OperationMetadata 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.telcoautomation.v1alpha1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.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); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.telcoautomation.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); + } + + @java.lang.Override + 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.telcoautomation.v1alpha1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.OperationMetadata) + com.google.cloud.telcoautomation.v1alpha1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.OperationMetadata.class, + com.google.cloud.telcoautomation.v1alpha1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.OperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OperationMetadata build() { + com.google.cloud.telcoautomation.v1alpha1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OperationMetadata buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.OperationMetadata result = + new com.google.cloud.telcoautomation.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + } + + @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.telcoautomation.v1alpha1.OperationMetadata) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.OperationMetadata other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + 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: + { + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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_; + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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]; + * + * + * @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. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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_; + } + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .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> + 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 endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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]; + * + * + * @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]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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_; + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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> + 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()); + endTime_ = null; + } + return endTimeBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (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]; + * + * @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(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (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]; + * + * @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(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * 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
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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(); + } + 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() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + 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) { + 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.telcoautomation.v1alpha1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.OperationMetadata) + private static final com.google.cloud.telcoautomation.v1alpha1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.OperationMetadata(); + } + + public static com.google.cloud.telcoautomation.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(); + } + }; + + 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.telcoautomation.v1alpha1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadataOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..964271d8e935 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OperationMetadataOrBuilder.java @@ -0,0 +1,218 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.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]; + * + * + * @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]; + * + * + * @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]; + * + */ + 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]; + * + * + * @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]; + * + * + * @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]; + * + */ + 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(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
+   * 
+ * + * 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(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationCluster.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationCluster.java new file mode 100644 index 000000000000..d3932efdb4d7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationCluster.java @@ -0,0 +1,2359 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Orchestration cluster represents a GKE cluster with config controller and
+ * TNA specific components installed on it.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.OrchestrationCluster} + */ +public final class OrchestrationCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.OrchestrationCluster) + OrchestrationClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrchestrationCluster.newBuilder() to construct. + private OrchestrationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrchestrationCluster() { + name_ = ""; + tnaVersion_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrchestrationCluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.class, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder.class); + } + + /** + * + * + *
+   * Possible states that the Orchestration Cluster can be in.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * OrchestrationCluster is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * OrchestrationCluster has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * OrchestrationCluster is being deleted.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
+     * OrchestrationCluster encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * OrchestrationCluster is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * OrchestrationCluster has been created and is ready for use.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
+     * OrchestrationCluster is being deleted.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
+     * OrchestrationCluster encountered an error and is in an indeterministic
+     * state. User can still initiate a delete operation on this state.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the orchestration cluster.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the orchestration cluster.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.telcoautomation.v1alpha1.ManagementConfig managementConfig_; + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + * + * @return Whether the managementConfig field is set. + */ + @java.lang.Override + public boolean hasManagementConfig() { + return managementConfig_ != null; + } + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + * + * @return The managementConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfig getManagementConfig() { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder + getManagementConfigOrBuilder() { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .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. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_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(); + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * 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(); + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * 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; + } + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * 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 TNA_VERSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + @java.lang.Override + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + 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(); + tnaVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State getState() { + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State result = + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State.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(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 (managementConfig_ != null) { + output.writeMessage(5, getManagementConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tnaVersion_); + } + if (state_ + != com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + 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 (managementConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagementConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tnaVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tnaVersion_); + } + if (state_ + != com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + 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.telcoautomation.v1alpha1.OrchestrationCluster)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster other = + (com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (hasManagementConfig() != other.hasManagementConfig()) return false; + if (hasManagementConfig()) { + if (!getManagementConfig().equals(other.getManagementConfig())) 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 (!getTnaVersion().equals(other.getTnaVersion())) return false; + if (state_ != other.state_) 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(); + if (hasManagementConfig()) { + hash = (37 * hash) + MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagementConfig().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) + TNA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTnaVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster 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.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster 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.telcoautomation.v1alpha1.OrchestrationCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster 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.telcoautomation.v1alpha1.OrchestrationCluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster 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.telcoautomation.v1alpha1.OrchestrationCluster 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; + } + /** + * + * + *
+   * Orchestration cluster represents a GKE cluster with config controller and
+   * TNA specific components installed on it.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.OrchestrationCluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.OrchestrationCluster) + com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.class, + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + managementConfig_ = null; + if (managementConfigBuilder_ != null) { + managementConfigBuilder_.dispose(); + managementConfigBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + tnaVersion_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster build() { + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster result = + new com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managementConfig_ = + managementConfigBuilder_ == null ? managementConfig_ : managementConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tnaVersion_ = tnaVersion_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + } + + @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.telcoautomation.v1alpha1.OrchestrationCluster) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasManagementConfig()) { + mergeManagementConfig(other.getManagementConfig()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.getTnaVersion().isEmpty()) { + tnaVersion_ = other.tnaVersion_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + getManagementConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + tnaVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + 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_ = ""; + /** + * + * + *
+     * Name of the orchestration cluster.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the orchestration cluster.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the orchestration cluster.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the orchestration cluster.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the orchestration cluster.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.ManagementConfig managementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder> + managementConfigBuilder_; + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + * + * @return Whether the managementConfig field is set. + */ + public boolean hasManagementConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + * + * @return The managementConfig. + */ + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfig getManagementConfig() { + if (managementConfigBuilder_ == null) { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } else { + return managementConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + public Builder setManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig value) { + if (managementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managementConfig_ = value; + } else { + managementConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + public Builder setManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder builderForValue) { + if (managementConfigBuilder_ == null) { + managementConfig_ = builderForValue.build(); + } else { + managementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + public Builder mergeManagementConfig( + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig value) { + if (managementConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && managementConfig_ != null + && managementConfig_ + != com.google.cloud.telcoautomation.v1alpha1.ManagementConfig + .getDefaultInstance()) { + getManagementConfigBuilder().mergeFrom(value); + } else { + managementConfig_ = value; + } + } else { + managementConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + public Builder clearManagementConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + managementConfig_ = null; + if (managementConfigBuilder_ != null) { + managementConfigBuilder_.dispose(); + managementConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder + getManagementConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getManagementConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + public com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder + getManagementConfigOrBuilder() { + if (managementConfigBuilder_ != null) { + return managementConfigBuilder_.getMessageOrBuilder(); + } else { + return managementConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.getDefaultInstance() + : managementConfig_; + } + } + /** + * + * + *
+     * Management configuration of the underlying GKE cluster.
+     * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder> + getManagementConfigFieldBuilder() { + if (managementConfigBuilder_ == null) { + managementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder>( + getManagementConfig(), getParentForChildren(), isClean()); + managementConfig_ = null; + } + return managementConfigBuilder_; + } + + 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. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Create time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. [Output only] Update time stamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private 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_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * 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_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Labels as key value pairs.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object tnaVersion_ = ""; + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + public java.lang.String getTnaVersion() { + java.lang.Object ref = tnaVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tnaVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + public com.google.protobuf.ByteString getTnaVersionBytes() { + java.lang.Object ref = tnaVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tnaVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTnaVersion() { + tnaVersion_ = getDefaultInstance().getTnaVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Provides the TNA version installed on the cluster.
+     * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tnaVersion to set. + * @return This builder for chaining. + */ + public Builder setTnaVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tnaVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State getState() { + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State result = + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State.forNumber(state_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the Orchestration Cluster.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 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.telcoautomation.v1alpha1.OrchestrationCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.OrchestrationCluster) + private static final com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrchestrationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.OrchestrationCluster + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java new file mode 100644 index 000000000000..2d1d330468b0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 OrchestrationClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORCHESTRATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String orchestrationCluster; + + @Deprecated + protected OrchestrationClusterName() { + project = null; + location = null; + orchestrationCluster = null; + } + + private OrchestrationClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + orchestrationCluster = Preconditions.checkNotNull(builder.getOrchestrationCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OrchestrationClusterName of( + String project, String location, String orchestrationCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .build(); + } + + public static String format(String project, String location, String orchestrationCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrchestrationCluster(orchestrationCluster) + .build() + .toString(); + } + + public static OrchestrationClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORCHESTRATION_CLUSTER.validatedMatch( + formattedString, "OrchestrationClusterName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("orchestration_cluster")); + } + + 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 (OrchestrationClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER.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 (orchestrationCluster != null) { + fieldMapBuilder.put("orchestration_cluster", orchestrationCluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORCHESTRATION_CLUSTER.instantiate( + "project", project, "location", location, "orchestration_cluster", orchestrationCluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OrchestrationClusterName that = ((OrchestrationClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.orchestrationCluster, that.orchestrationCluster); + } + 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(orchestrationCluster); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}. + */ + public static class Builder { + private String project; + private String location; + private String orchestrationCluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrchestrationCluster() { + return orchestrationCluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrchestrationCluster(String orchestrationCluster) { + this.orchestrationCluster = orchestrationCluster; + return this; + } + + private Builder(OrchestrationClusterName orchestrationClusterName) { + this.project = orchestrationClusterName.project; + this.location = orchestrationClusterName.location; + this.orchestrationCluster = orchestrationClusterName.orchestrationCluster; + } + + public OrchestrationClusterName build() { + return new OrchestrationClusterName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterOrBuilder.java new file mode 100644 index 000000000000..aa3f29125ca3 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterOrBuilder.java @@ -0,0 +1,274 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface OrchestrationClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.OrchestrationCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the orchestration cluster.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the orchestration cluster.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + * + * @return Whether the managementConfig field is set. + */ + boolean hasManagementConfig(); + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + * + * @return The managementConfig. + */ + com.google.cloud.telcoautomation.v1alpha1.ManagementConfig getManagementConfig(); + /** + * + * + *
+   * Management configuration of the underlying GKE cluster.
+   * 
+ * + * .google.cloud.telcoautomation.v1alpha1.ManagementConfig management_config = 5; + */ + com.google.cloud.telcoautomation.v1alpha1.ManagementConfigOrBuilder + getManagementConfigOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. [Output only] Create time stamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. [Output only] Update time stamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Labels as key value pairs.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tnaVersion. + */ + java.lang.String getTnaVersion(); + /** + * + * + *
+   * Output only. Provides the TNA version installed on the cluster.
+   * 
+ * + * string tna_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tnaVersion. + */ + com.google.protobuf.ByteString getTnaVersionBytes(); + + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the Orchestration Cluster.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster.State getState(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequest.java new file mode 100644 index 000000000000..a1593cdc57a5 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `ProposeBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest} + */ +public final class ProposeBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) + ProposeBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProposeBlueprintRequest.newBuilder() to construct. + private ProposeBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProposeBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProposeBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.ProposeBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) 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.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest 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.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest 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.telcoautomation.v1alpha1.ProposeBlueprintRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest + 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.telcoautomation.v1alpha1.ProposeBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest 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.telcoautomation.v1alpha1.ProposeBlueprintRequest 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 object for `ProposeBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest 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.telcoautomation.v1alpha1.ProposeBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest.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. The name of the blueprint being proposed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being proposed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being proposed.
+     * 
+ * + * + * 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. The name of the blueprint being proposed.
+     * 
+ * + * + * 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. The name of the blueprint being proposed.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.ProposeBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProposeBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ProposeBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..c37959d409f9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ProposeBlueprintRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ProposeBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint being proposed.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprint.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprint.java new file mode 100644 index 000000000000..3779c9700675 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprint.java @@ -0,0 +1,1541 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * A Blueprint contains a collection of kubernetes resources in the form of
+ * YAML files. The file contents of a blueprint are collectively known as
+ * package.
+ * Public blueprint is a TNA provided blueprint that in present in TNA's public
+ * catalog. A user can copy the public blueprint to their private catalog for
+ * further modifications.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.PublicBlueprint} + */ +public final class PublicBlueprint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.PublicBlueprint) + PublicBlueprintOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicBlueprint.newBuilder() to construct. + private PublicBlueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PublicBlueprint() { + name_ = ""; + displayName_ = ""; + description_ = ""; + deploymentLevel_ = 0; + sourceProvider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PublicBlueprint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.class, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder.class); + } + + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied.
+   * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel} + */ + public enum DeploymentLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified deployment level.
+     * 
+ * + * DEPLOYMENT_LEVEL_UNSPECIFIED = 0; + */ + DEPLOYMENT_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Blueprints at HYDRATION level cannot be used to create a Deployment
+     * (A user cannot manually initate deployment of these blueprints on
+     * orchestration or workload cluster).
+     * These blueprints stay in a user's private catalog and are configured and
+     * deployed by TNA automation.
+     * 
+ * + * HYDRATION = 1; + */ + HYDRATION(1), + /** + * + * + *
+     * Blueprints at DEPLOYMENT level can be
+     * a) Modified in private catalog.
+     * b) Used to create a deployment on orchestration cluster by the user, once
+     * approved.
+     * 
+ * + * DEPLOYMENT = 2; + */ + DEPLOYMENT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified deployment level.
+     * 
+ * + * DEPLOYMENT_LEVEL_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Blueprints at HYDRATION level cannot be used to create a Deployment
+     * (A user cannot manually initate deployment of these blueprints on
+     * orchestration or workload cluster).
+     * These blueprints stay in a user's private catalog and are configured and
+     * deployed by TNA automation.
+     * 
+ * + * HYDRATION = 1; + */ + public static final int HYDRATION_VALUE = 1; + /** + * + * + *
+     * Blueprints at DEPLOYMENT level can be
+     * a) Modified in private catalog.
+     * b) Used to create a deployment on orchestration cluster by the user, once
+     * approved.
+     * 
+ * + * DEPLOYMENT = 2; + */ + public static final int DEPLOYMENT_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 DeploymentLevel 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 DeploymentLevel forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_LEVEL_UNSPECIFIED; + case 1: + return HYDRATION; + case 2: + return DEPLOYMENT; + 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 DeploymentLevel findValueByNumber(int number) { + return DeploymentLevel.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.telcoautomation.v1alpha1.PublicBlueprint.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DeploymentLevel[] VALUES = values(); + + public static DeploymentLevel 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 DeploymentLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @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 DEPLOYMENT_LEVEL_FIELD_NUMBER = 4; + private int deploymentLevel_ = 0; + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel + getDeploymentLevel() { + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel result = + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel.forNumber( + deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel.UNRECOGNIZED + : result; + } + + public static final int SOURCE_PROVIDER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The sourceProvider. + */ + @java.lang.Override + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + 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(); + sourceProvider_ = s; + return s; + } + } + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The bytes for sourceProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel + .DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, deploymentLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceProvider_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (deploymentLevel_ + != com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel + .DEPLOYMENT_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, deploymentLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceProvider_); + } + 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.telcoautomation.v1alpha1.PublicBlueprint)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint other = + (com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (deploymentLevel_ != other.deploymentLevel_) return false; + if (!getSourceProvider().equals(other.getSourceProvider())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DEPLOYMENT_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + deploymentLevel_; + hash = (37 * hash) + SOURCE_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvider().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint 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.telcoautomation.v1alpha1.PublicBlueprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint 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.telcoautomation.v1alpha1.PublicBlueprint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint 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.telcoautomation.v1alpha1.PublicBlueprint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint 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.telcoautomation.v1alpha1.PublicBlueprint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Blueprint contains a collection of kubernetes resources in the form of
+   * YAML files. The file contents of a blueprint are collectively known as
+   * package.
+   * Public blueprint is a TNA provided blueprint that in present in TNA's public
+   * catalog. A user can copy the public blueprint to their private catalog for
+   * further modifications.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.PublicBlueprint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.PublicBlueprint) + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.class, + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + deploymentLevel_ = 0; + sourceProvider_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint build() { + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint result = + new com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deploymentLevel_ = deploymentLevel_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceProvider_ = sourceProvider_; + } + } + + @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.telcoautomation.v1alpha1.PublicBlueprint) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.deploymentLevel_ != 0) { + setDeploymentLevelValue(other.getDeploymentLevelValue()); + } + if (!other.getSourceProvider().isEmpty()) { + sourceProvider_ = other.sourceProvider_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + deploymentLevel_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + sourceProvider_ = 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 name_ = ""; + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the public blueprint.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the public blueprint.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the public blueprint.
+     * 
+ * + * string description = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private int deploymentLevel_ = 0; + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + @java.lang.Override + public int getDeploymentLevelValue() { + return deploymentLevel_; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @param value The enum numeric value on the wire for deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevelValue(int value) { + deploymentLevel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return The deploymentLevel. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel + getDeploymentLevel() { + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel result = + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel.forNumber( + deploymentLevel_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @param value The deploymentLevel to set. + * @return This builder for chaining. + */ + public Builder setDeploymentLevel( + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + deploymentLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * DeploymentLevel of a blueprint signifies where the blueprint will be
+     * applied. e.g. [HYDRATION, DEPLOYMENT]
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentLevel() { + bitField0_ = (bitField0_ & ~0x00000008); + deploymentLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sourceProvider_ = ""; + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @return The sourceProvider. + */ + public java.lang.String getSourceProvider() { + java.lang.Object ref = sourceProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @return The bytes for sourceProvider. + */ + public com.google.protobuf.ByteString getSourceProviderBytes() { + java.lang.Object ref = sourceProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @param value The sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvider_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @return This builder for chaining. + */ + public Builder clearSourceProvider() { + sourceProvider_ = getDefaultInstance().getSourceProvider(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Source provider is the author of a public blueprint. e.g. Google, vendors
+     * 
+ * + * string source_provider = 5; + * + * @param value The bytes for sourceProvider to set. + * @return This builder for chaining. + */ + public Builder setSourceProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProvider_ = 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.telcoautomation.v1alpha1.PublicBlueprint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.PublicBlueprint) + private static final com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicBlueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.PublicBlueprint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java new file mode 100644 index 000000000000..0d42c3be41e8 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1; + +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 PublicBlueprintName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PUBLIC_LUEPRINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/publicBlueprints/{public_lueprint}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String publicLueprint; + + @Deprecated + protected PublicBlueprintName() { + project = null; + location = null; + publicLueprint = null; + } + + private PublicBlueprintName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + publicLueprint = Preconditions.checkNotNull(builder.getPublicLueprint()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublicLueprint() { + return publicLueprint; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PublicBlueprintName of(String project, String location, String publicLueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublicLueprint(publicLueprint) + .build(); + } + + public static String format(String project, String location, String publicLueprint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPublicLueprint(publicLueprint) + .build() + .toString(); + } + + public static PublicBlueprintName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PUBLIC_LUEPRINT.validatedMatch( + formattedString, "PublicBlueprintName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("public_lueprint")); + } + + 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 (PublicBlueprintName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PUBLIC_LUEPRINT.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 (publicLueprint != null) { + fieldMapBuilder.put("public_lueprint", publicLueprint); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PUBLIC_LUEPRINT.instantiate( + "project", project, "location", location, "public_lueprint", publicLueprint); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + PublicBlueprintName that = ((PublicBlueprintName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.publicLueprint, that.publicLueprint); + } + 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(publicLueprint); + return h; + } + + /** Builder for projects/{project}/locations/{location}/publicBlueprints/{public_lueprint}. */ + public static class Builder { + private String project; + private String location; + private String publicLueprint; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPublicLueprint() { + return publicLueprint; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPublicLueprint(String publicLueprint) { + this.publicLueprint = publicLueprint; + return this; + } + + private Builder(PublicBlueprintName publicBlueprintName) { + this.project = publicBlueprintName.project; + this.location = publicBlueprintName.location; + this.publicLueprint = publicBlueprintName.publicLueprint; + } + + public PublicBlueprintName build() { + return new PublicBlueprintName(this); + } + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintOrBuilder.java new file mode 100644 index 000000000000..a2815d09370e --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface PublicBlueprintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.PublicBlueprint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the public blueprint.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the public blueprint.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the public blueprint.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return The enum numeric value on the wire for deploymentLevel. + */ + int getDeploymentLevelValue(); + /** + * + * + *
+   * DeploymentLevel of a blueprint signifies where the blueprint will be
+   * applied. e.g. [HYDRATION, DEPLOYMENT]
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel deployment_level = 4; + * + * + * @return The deploymentLevel. + */ + com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint.DeploymentLevel getDeploymentLevel(); + + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The sourceProvider. + */ + java.lang.String getSourceProvider(); + /** + * + * + *
+   * Source provider is the author of a public blueprint. e.g. Google, vendors
+   * 
+ * + * string source_provider = 5; + * + * @return The bytes for sourceProvider. + */ + com.google.protobuf.ByteString getSourceProviderBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequest.java new file mode 100644 index 000000000000..c9e83882a84a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `RejectBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest} + */ +public final class RejectBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) + RejectBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RejectBlueprintRequest.newBuilder() to construct. + private RejectBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RejectBlueprintRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RejectBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * 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.telcoautomation.v1alpha1.RejectBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) 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.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest 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.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest 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.telcoautomation.v1alpha1.RejectBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest 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.telcoautomation.v1alpha1.RejectBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest 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.telcoautomation.v1alpha1.RejectBlueprintRequest 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 object for `RejectBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest 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.telcoautomation.v1alpha1.RejectBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest.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. The name of the blueprint being rejected.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being rejected.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the blueprint being rejected.
+     * 
+ * + * + * 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. The name of the blueprint being rejected.
+     * 
+ * + * + * 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. The name of the blueprint being rejected.
+     * 
+ * + * + * 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.telcoautomation.v1alpha1.RejectBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RejectBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.RejectBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..aa61de08aae7 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RejectBlueprintRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface RejectBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the blueprint being rejected.
+   * 
+ * + * + * 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-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequest.java new file mode 100644 index 000000000000..a5c81684bdb6 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequest.java @@ -0,0 +1,648 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `RemoveDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest} + */ +public final class RemoveDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) + RemoveDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveDeploymentRequest.newBuilder() to construct. + private RemoveDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveDeploymentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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.telcoautomation.v1alpha1.RemoveDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) 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.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest 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.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest 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.telcoautomation.v1alpha1.RemoveDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest + 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.telcoautomation.v1alpha1.RemoveDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest 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.telcoautomation.v1alpha1.RemoveDeploymentRequest 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 object for `RemoveDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.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.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest 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.telcoautomation.v1alpha1.RemoveDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest.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. The name of deployment to initiate delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of deployment to initiate delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of deployment to initiate 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. The name of deployment to initiate 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. The name of deployment to initiate 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; + } + + @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.telcoautomation.v1alpha1.RemoveDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.RemoveDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..3e60657e91dd --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RemoveDeploymentRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface RemoveDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of deployment to initiate delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatus.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatus.java new file mode 100644 index 000000000000..c8854b9d7766 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatus.java @@ -0,0 +1,1689 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Status of a deployment resource.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ResourceStatus} + */ +public final class ResourceStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.ResourceStatus) + ResourceStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceStatus.newBuilder() to construct. + private ResourceStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceStatus() { + name_ = ""; + resourceNamespace_ = ""; + group_ = ""; + version_ = ""; + kind_ = ""; + resourceType_ = 0; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.class, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceNamespace_ = ""; + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The resourceNamespace. + */ + @java.lang.Override + public java.lang.String getResourceNamespace() { + java.lang.Object ref = resourceNamespace_; + 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(); + resourceNamespace_ = s; + return s; + } + } + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The bytes for resourceNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceNamespaceBytes() { + java.lang.Object ref = resourceNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object group_ = ""; + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = group_; + 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(); + group_ = s; + return s; + } + } + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @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; + } + } + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @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; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 6; + private int resourceType_ = 0; + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceType getResourceType() { + com.google.cloud.telcoautomation.v1alpha1.ResourceType result = + com.google.cloud.telcoautomation.v1alpha1.ResourceType.forNumber(resourceType_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.ResourceType.UNRECOGNIZED + : result; + } + + public static final int STATUS_FIELD_NUMBER = 7; + private int status_ = 0; + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Status getStatus() { + com.google.cloud.telcoautomation.v1alpha1.Status result = + com.google.cloud.telcoautomation.v1alpha1.Status.forNumber(status_); + return result == null ? com.google.cloud.telcoautomation.v1alpha1.Status.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceNamespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceNamespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, group_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kind_); + } + if (resourceType_ + != com.google.cloud.telcoautomation.v1alpha1.ResourceType.RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, resourceType_); + } + if (status_ + != com.google.cloud.telcoautomation.v1alpha1.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(7, status_); + } + 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(resourceNamespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceNamespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, group_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kind_); + } + if (resourceType_ + != com.google.cloud.telcoautomation.v1alpha1.ResourceType.RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, resourceType_); + } + if (status_ + != com.google.cloud.telcoautomation.v1alpha1.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); + } + 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.telcoautomation.v1alpha1.ResourceStatus)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus other = + (com.google.cloud.telcoautomation.v1alpha1.ResourceStatus) obj; + + if (!getName().equals(other.getName())) return false; + if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; + if (!getGroup().equals(other.getGroup())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getKind().equals(other.getKind())) return false; + if (resourceType_ != other.resourceType_) return false; + if (status_ != other.status_) 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) + RESOURCE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getResourceNamespace().hashCode(); + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus 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.telcoautomation.v1alpha1.ResourceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus 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.telcoautomation.v1alpha1.ResourceStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus 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.telcoautomation.v1alpha1.ResourceStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus 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.telcoautomation.v1alpha1.ResourceStatus 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; + } + /** + * + * + *
+   * Status of a deployment resource.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.ResourceStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.ResourceStatus) + com.google.cloud.telcoautomation.v1alpha1.ResourceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.class, + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + resourceNamespace_ = ""; + group_ = ""; + version_ = ""; + kind_ = ""; + resourceType_ = 0; + status_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus build() { + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceStatus buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.ResourceStatus result = + new com.google.cloud.telcoautomation.v1alpha1.ResourceStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.telcoautomation.v1alpha1.ResourceStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceNamespace_ = resourceNamespace_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.group_ = group_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.status_ = status_; + } + } + + @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.telcoautomation.v1alpha1.ResourceStatus) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.ResourceStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.telcoautomation.v1alpha1.ResourceStatus other) { + if (other == com.google.cloud.telcoautomation.v1alpha1.ResourceStatus.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResourceNamespace().isEmpty()) { + resourceNamespace_ = other.resourceNamespace_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGroup().isEmpty()) { + group_ = other.group_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + 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: + { + resourceNamespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + group_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + 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_ = ""; + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the resource.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resourceNamespace_ = ""; + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @return The resourceNamespace. + */ + public java.lang.String getResourceNamespace() { + java.lang.Object ref = resourceNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @return The bytes for resourceNamespace. + */ + public com.google.protobuf.ByteString getResourceNamespaceBytes() { + java.lang.Object ref = resourceNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @param value The resourceNamespace to set. + * @return This builder for chaining. + */ + public Builder setResourceNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceNamespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @return This builder for chaining. + */ + public Builder clearResourceNamespace() { + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Namespace of the resource.
+     * 
+ * + * string resource_namespace = 2; + * + * @param value The bytes for resourceNamespace to set. + * @return This builder for chaining. + */ + public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object group_ = ""; + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @return The bytes for group. + */ + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Group to which the resource belongs to.
+     * 
+ * + * string group = 3; + * + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of the resource.
+     * 
+ * + * string version = 4; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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; + } + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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; + } + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Kind of the resource.
+     * 
+ * + * string kind = 5; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.ResourceType getResourceType() { + com.google.cloud.telcoautomation.v1alpha1.ResourceType result = + com.google.cloud.telcoautomation.v1alpha1.ResourceType.forNumber(resourceType_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.ResourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.cloud.telcoautomation.v1alpha1.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource type.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000020); + resourceType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Status getStatus() { + com.google.cloud.telcoautomation.v1alpha1.Status result = + com.google.cloud.telcoautomation.v1alpha1.Status.forNumber(status_); + return result == null + ? com.google.cloud.telcoautomation.v1alpha1.Status.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.telcoautomation.v1alpha1.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of the resource.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + status_ = 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.telcoautomation.v1alpha1.ResourceStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.ResourceStatus) + private static final com.google.cloud.telcoautomation.v1alpha1.ResourceStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.ResourceStatus(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.ResourceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.ResourceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatusOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatusOrBuilder.java new file mode 100644 index 000000000000..c018651f9a6a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceStatusOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface ResourceStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.ResourceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the resource.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The resourceNamespace. + */ + java.lang.String getResourceNamespace(); + /** + * + * + *
+   * Namespace of the resource.
+   * 
+ * + * string resource_namespace = 2; + * + * @return The bytes for resourceNamespace. + */ + com.google.protobuf.ByteString getResourceNamespaceBytes(); + + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The group. + */ + java.lang.String getGroup(); + /** + * + * + *
+   * Group to which the resource belongs to.
+   * 
+ * + * string group = 3; + * + * @return The bytes for group. + */ + com.google.protobuf.ByteString getGroupBytes(); + + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Version of the resource.
+   * 
+ * + * string version = 4; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @return The kind. + */ + java.lang.String getKind(); + /** + * + * + *
+   * Kind of the resource.
+   * 
+ * + * string kind = 5; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * Output only. Resource type.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.ResourceType resource_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + com.google.cloud.telcoautomation.v1alpha1.ResourceType getResourceType(); + + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Output only. Status of the resource.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.cloud.telcoautomation.v1alpha1.Status getStatus(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceType.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceType.java new file mode 100644 index 000000000000..7bcd45c92b8d --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/ResourceType.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Represent type of CR.
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.ResourceType} + */ +public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified resource type.
+   * 
+ * + * RESOURCE_TYPE_UNSPECIFIED = 0; + */ + RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * User specified NF Deploy CR.
+   * 
+ * + * NF_DEPLOY_CUSTOM_RESOURCE = 1; + */ + NF_DEPLOY_CUSTOM_RESOURCE(1), + /** + * + * + *
+   * CRs that are part of a blueprint.
+   * 
+ * + * BLUEPRINT_CUSTOM_RESOURCE = 2; + */ + BLUEPRINT_CUSTOM_RESOURCE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified resource type.
+   * 
+ * + * RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * User specified NF Deploy CR.
+   * 
+ * + * NF_DEPLOY_CUSTOM_RESOURCE = 1; + */ + public static final int NF_DEPLOY_CUSTOM_RESOURCE_VALUE = 1; + /** + * + * + *
+   * CRs that are part of a blueprint.
+   * 
+ * + * BLUEPRINT_CUSTOM_RESOURCE = 2; + */ + public static final int BLUEPRINT_CUSTOM_RESOURCE_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 ResourceType 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 ResourceType forNumber(int value) { + switch (value) { + case 0: + return RESOURCE_TYPE_UNSPECIFIED; + case 1: + return NF_DEPLOY_CUSTOM_RESOURCE; + case 2: + return BLUEPRINT_CUSTOM_RESOURCE; + 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 ResourceType findValueByNumber(int number) { + return ResourceType.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.telcoautomation.v1alpha1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType 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 ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.ResourceType) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequest.java new file mode 100644 index 000000000000..7b23579524be --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequest.java @@ -0,0 +1,832 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `RollbackDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest} + */ +public final class RollbackDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) + RollbackDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollbackDeploymentRequest.newBuilder() to construct. + private RollbackDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollbackDeploymentRequest() { + name_ = ""; + revisionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollbackDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the deployment.
+   * 
+ * + * + * 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 deployment.
+   * 
+ * + * + * 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 REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = 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(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + 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(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + 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.telcoautomation.v1alpha1.RollbackDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) 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) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest 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.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest 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.telcoautomation.v1alpha1.RollbackDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + 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.telcoautomation.v1alpha1.RollbackDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest 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.telcoautomation.v1alpha1.RollbackDeploymentRequest 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 object for `RollbackDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + } + + @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.telcoautomation.v1alpha1.RollbackDeploymentRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + 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: + { + revisionId_ = 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 deployment.
+     * 
+ * + * + * 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 revisionId_ = ""; + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The revision id of deployment to roll back to.
+     * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = 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.telcoautomation.v1alpha1.RollbackDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.RollbackDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..1545fdac8571 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/RollbackDeploymentRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface RollbackDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the deployment.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
+   * Required. The revision id of deployment to roll back to.
+   * 
+ * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequest.java new file mode 100644 index 000000000000..c7848f8ab5db --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequest.java @@ -0,0 +1,1182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `SearchBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest} + */ +public final class SearchBlueprintRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) + SearchBlueprintRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchBlueprintRevisionsRequest.newBuilder() to construct. + private SearchBlueprintRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchBlueprintRevisionsRequest() { + parent_ = ""; + query_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchBlueprintRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name=<name>"            : Lists all revisions of blueprint with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name=<name>"            : Lists all revisions of blueprint with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of blueprints revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest 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 object for `SearchBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + query_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 query_ = ""; + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name=<name>"            : Lists all revisions of blueprint with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name=<name>"            : Lists all revisions of blueprint with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name=<name>"            : Lists all revisions of blueprint with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name=<name>"            : Lists all revisions of blueprint with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all blueprints.
+     * 2. "latest=true"            : Lists latest revisions across all blueprints.
+     * 3. "name=<name>"            : Lists all revisions of blueprint with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of blueprints revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of blueprints revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlueprintRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..2d100884cf48 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface SearchBlueprintRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name=<name>"            : Lists all revisions of blueprint with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all blueprints.
+   * 2. "latest=true"            : Lists latest revisions across all blueprints.
+   * 3. "name=<name>"            : Lists all revisions of blueprint with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of blueprint with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional. The maximum number of blueprints revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponse.java new file mode 100644 index 000000000000..24369850d927 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponse.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `SearchBlueprintRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse} + */ +public final class SearchBlueprintRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) + SearchBlueprintRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchBlueprintRevisionsResponse.newBuilder() to construct. + private SearchBlueprintRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchBlueprintRevisionsResponse() { + blueprints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchBlueprintRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse.Builder + .class); + } + + public static final int BLUEPRINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List blueprints_; + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List getBlueprintsList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public java.util.List + getBlueprintsOrBuilderList() { + return blueprints_; + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public int getBlueprintsCount() { + return blueprints_.size(); + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index) { + return blueprints_.get(index); + } + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + return blueprints_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < blueprints_.size(); i++) { + output.writeMessage(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blueprints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blueprints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) obj; + + if (!getBlueprintsList().equals(other.getBlueprintsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBlueprintsCount() > 0) { + hash = (37 * hash) + BLUEPRINTS_FIELD_NUMBER; + hash = (53 * hash) + getBlueprintsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse 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 object for `SearchBlueprintRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + } else { + blueprints_ = null; + blueprintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse result) { + if (blueprintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + blueprints_ = java.util.Collections.unmodifiableList(blueprints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blueprints_ = blueprints_; + } else { + result.blueprints_ = blueprintsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse 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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + .getDefaultInstance()) return this; + if (blueprintsBuilder_ == null) { + if (!other.blueprints_.isEmpty()) { + if (blueprints_.isEmpty()) { + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlueprintsIsMutable(); + blueprints_.addAll(other.blueprints_); + } + onChanged(); + } + } else { + if (!other.blueprints_.isEmpty()) { + if (blueprintsBuilder_.isEmpty()) { + blueprintsBuilder_.dispose(); + blueprintsBuilder_ = null; + blueprints_ = other.blueprints_; + bitField0_ = (bitField0_ & ~0x00000001); + blueprintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlueprintsFieldBuilder() + : null; + } else { + blueprintsBuilder_.addAllMessages(other.blueprints_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.Blueprint m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.parser(), + extensionRegistry); + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(m); + } else { + blueprintsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List blueprints_ = + java.util.Collections.emptyList(); + + private void ensureBlueprintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blueprints_ = + new java.util.ArrayList( + blueprints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + blueprintsBuilder_; + + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List getBlueprintsList() { + if (blueprintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blueprints_); + } else { + return blueprintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public int getBlueprintsCount() { + if (blueprintsBuilder_ == null) { + return blueprints_.size(); + } else { + return blueprintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.set(index, value); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder setBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.set(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlueprintsIsMutable(); + blueprints_.add(index, value); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addBlueprints( + int index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.add(index, builderForValue.build()); + onChanged(); + } else { + blueprintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder addAllBlueprints( + java.lang.Iterable values) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueprints_); + onChanged(); + } else { + blueprintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder clearBlueprints() { + if (blueprintsBuilder_ == null) { + blueprints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blueprintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public Builder removeBlueprints(int index) { + if (blueprintsBuilder_ == null) { + ensureBlueprintsIsMutable(); + blueprints_.remove(index); + onChanged(); + } else { + blueprintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder getBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder( + int index) { + if (blueprintsBuilder_ == null) { + return blueprints_.get(index); + } else { + return blueprintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsOrBuilderList() { + if (blueprintsBuilder_ != null) { + return blueprintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blueprints_); + } + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder addBlueprintsBuilder() { + return getBlueprintsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder addBlueprintsBuilder( + int index) { + return getBlueprintsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested blueprint revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + public java.util.List + getBlueprintsBuilderList() { + return getBlueprintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + getBlueprintsFieldBuilder() { + if (blueprintsBuilder_ == null) { + blueprintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder>( + blueprints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + blueprints_ = null; + } + return blueprintsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchBlueprintRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..11b5dd82eb95 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchBlueprintRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface SearchBlueprintRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + java.util.List getBlueprintsList(); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprints(int index); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + int getBlueprintsCount(); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + java.util.List + getBlueprintsOrBuilderList(); + /** + * + * + *
+   * The list of requested blueprint revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Blueprint blueprints = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequest.java new file mode 100644 index 000000000000..1ebb785a1041 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequest.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `SearchDeploymentRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest} + */ +public final class SearchDeploymentRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) + SearchDeploymentRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDeploymentRevisionsRequest.newBuilder() to construct. + private SearchDeploymentRevisionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDeploymentRevisionsRequest() { + parent_ = ""; + query_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDeploymentRevisionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * 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 QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name=<name>"            : Lists all revisions of deployment with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name=<name>"            : Lists all revisions of deployment with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of deployment revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest other = + (com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest 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 object for `SearchDeploymentRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest.class, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + query_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest build() { + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest result = + new com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 name of parent orchestration cluster resource.
+     * Format should be -
+     * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+     * 
+ * + * + * 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 query_ = ""; + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name=<name>"            : Lists all revisions of deployment with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name=<name>"            : Lists all revisions of deployment with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name=<name>"            : Lists all revisions of deployment with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name=<name>"            : Lists all revisions of deployment with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Supported queries:
+     * 1. ""                       : Lists all revisions across all deployments.
+     * 2. "latest=true"            : Lists latest revisions across all
+     * deployments.
+     * 3. "name=<name>"            : Lists all revisions of deployment with name
+     * <name>.
+     * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+     * <name>
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of deployment revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of deployment revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of deployment revisions to return per page.
+     * max page size = 100, default page size = 20.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The page token, received from a previous search call.
+     * It can be provided to retrieve the subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDeploymentRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..db7e10545658 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface SearchDeploymentRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of parent orchestration cluster resource.
+   * Format should be -
+   * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name=<name>"            : Lists all revisions of deployment with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + /** + * + * + *
+   * Required. Supported queries:
+   * 1. ""                       : Lists all revisions across all deployments.
+   * 2. "latest=true"            : Lists latest revisions across all
+   * deployments.
+   * 3. "name=<name>"            : Lists all revisions of deployment with name
+   * <name>.
+   * 4. "name=<name> latest=true": Lists latest revision of deployment with name
+   * <name>
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Optional. The maximum number of deployment revisions to return per page.
+   * max page size = 100, default page size = 20.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The page token, received from a previous search call.
+   * It can be provided to retrieve the subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponse.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponse.java new file mode 100644 index 000000000000..c3a33d90e755 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponse.java @@ -0,0 +1,1161 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Response object for `SearchDeploymentRevisions`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse} + */ +public final class SearchDeploymentRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) + SearchDeploymentRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDeploymentRevisionsResponse.newBuilder() to construct. + private SearchDeploymentRevisionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDeploymentRevisionsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDeploymentRevisionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse.Builder + .class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse other = + (com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse 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 object for `SearchDeploymentRevisions`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse.class, + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse build() { + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse result = + new com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse 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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + .getDefaultInstance()) return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.telcoautomation.v1alpha1.Deployment m = + input.readMessage( + com.google.cloud.telcoautomation.v1alpha1.Deployment.parser(), + extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = + new java.util.ArrayList( + deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder getDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder( + int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder addDeploymentsBuilder() { + return getDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder addDeploymentsBuilder( + int index) { + return getDeploymentsFieldBuilder() + .addBuilder( + index, com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()); + } + /** + * + * + *
+     * The list of requested deployment revisions.
+     * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsBuilderList() { + return getDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + getDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + + @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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) + private static final com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDeploymentRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponseOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..e52fb3401b6a --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/SearchDeploymentRevisionsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface SearchDeploymentRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployments(int index); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + /** + * + * + *
+   * The list of requested deployment revisions.
+   * 
+ * + * repeated .google.cloud.telcoautomation.v1alpha1.Deployment deployments = 1; + */ + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfig.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfig.java new file mode 100644 index 000000000000..27d9561f27c9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfig.java @@ -0,0 +1,2171 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Configuration of the standard (GKE) cluster management.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.StandardManagementConfig} + */ +public final class StandardManagementConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) + StandardManagementConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StandardManagementConfig.newBuilder() to construct. + private StandardManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StandardManagementConfig() { + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StandardManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.class, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 SUBNET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnet_ = ""; + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + @java.lang.Override + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + 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(); + subnet_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + 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(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_CIDR_BLOCK_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + 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(); + clusterCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_CIDR_BLOCK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + 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(); + servicesCidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAMED_RANGE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + @java.lang.Override + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + 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(); + clusterNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_NAMED_RANGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + @java.lang.Override + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + 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(); + servicesNamedRange_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(8, getMasterAuthorizedNetworksConfig()); + } + 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(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesCidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, servicesCidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterNamedRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesNamedRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, servicesNamedRange_); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMasterAuthorizedNetworksConfig()); + } + 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.telcoautomation.v1alpha1.StandardManagementConfig)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig other = + (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) obj; + + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (!getClusterCidrBlock().equals(other.getClusterCidrBlock())) return false; + if (!getServicesCidrBlock().equals(other.getServicesCidrBlock())) return false; + if (!getClusterNamedRange().equals(other.getClusterNamedRange())) return false; + if (!getServicesNamedRange().equals(other.getServicesNamedRange())) return false; + if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) + return false; + if (hasMasterAuthorizedNetworksConfig()) { + if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) + 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterCidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesCidrBlock().hashCode(); + hash = (37 * hash) + CLUSTER_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getClusterNamedRange().hashCode(); + hash = (37 * hash) + SERVICES_NAMED_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getServicesNamedRange().hashCode(); + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig 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.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig 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.telcoautomation.v1alpha1.StandardManagementConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + 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.telcoautomation.v1alpha1.StandardManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig 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.telcoautomation.v1alpha1.StandardManagementConfig 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; + } + /** + * + * + *
+   * Configuration of the standard (GKE) cluster management.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.StandardManagementConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.class, + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnet_ = ""; + masterIpv4CidrBlock_ = ""; + clusterCidrBlock_ = ""; + servicesCidrBlock_ = ""; + clusterNamedRange_ = ""; + servicesNamedRange_ = ""; + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig build() { + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig result = + new com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnet_ = subnet_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterCidrBlock_ = clusterCidrBlock_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.servicesCidrBlock_ = servicesCidrBlock_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clusterNamedRange_ = clusterNamedRange_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.servicesNamedRange_ = servicesNamedRange_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.masterAuthorizedNetworksConfig_ = + masterAuthorizedNetworksConfigBuilder_ == null + ? masterAuthorizedNetworksConfig_ + : masterAuthorizedNetworksConfigBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.StandardManagementConfig) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + .getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnet().isEmpty()) { + subnet_ = other.subnet_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterCidrBlock().isEmpty()) { + clusterCidrBlock_ = other.clusterCidrBlock_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getServicesCidrBlock().isEmpty()) { + servicesCidrBlock_ = other.servicesCidrBlock_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getClusterNamedRange().isEmpty()) { + clusterNamedRange_ = other.clusterNamedRange_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getServicesNamedRange().isEmpty()) { + servicesNamedRange_ = other.servicesNamedRange_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + 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: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subnet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + clusterCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + servicesCidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + clusterNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + servicesNamedRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + 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 network_ = ""; + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+     * VPC will be created if it doesn't exist.
+     * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnet_ = ""; + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + public com.google.protobuf.ByteString getSubnetBytes() { + java.lang.Object ref = subnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubnet() { + subnet_ = getDefaultInstance().getSubnet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the subnet that the interface will be part of. Network
+     * key must be specified and the subnet must be a subnetwork of the specified
+     * network.
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The /28 network that the masters will use.
+     * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + masterIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + public java.lang.String getClusterCidrBlock() { + java.lang.Object ref = clusterCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + public com.google.protobuf.ByteString getClusterCidrBlockBytes() { + java.lang.Object ref = clusterCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterCidrBlock() { + clusterCidrBlock_ = getDefaultInstance().getClusterCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster pod IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation
+     * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterCidrBlock_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object servicesCidrBlock_ = ""; + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + public java.lang.String getServicesCidrBlock() { + java.lang.Object ref = servicesCidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesCidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + public com.google.protobuf.ByteString getServicesCidrBlockBytes() { + java.lang.Object ref = servicesCidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesCidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesCidrBlock() { + servicesCidrBlock_ = getDefaultInstance().getServicesCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IP address range for the cluster service IPs. Set to blank to
+     * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+     * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+     * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+     * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+     * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesCidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesCidrBlock_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object clusterNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + public java.lang.String getClusterNamedRange() { + java.lang.Object ref = clusterNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + public com.google.protobuf.ByteString getClusterNamedRangeBytes() { + java.lang.Object ref = clusterNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterNamedRange() { + clusterNamedRange_ = getDefaultInstance().getClusterNamedRange(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+     * can be used to automatically create a GKE-managed one.
+     * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterNamedRange to set. + * @return This builder for chaining. + */ + public Builder setClusterNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterNamedRange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object servicesNamedRange_ = ""; + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + public java.lang.String getServicesNamedRange() { + java.lang.Object ref = servicesNamedRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesNamedRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + public com.google.protobuf.ByteString getServicesNamedRangeBytes() { + java.lang.Object ref = servicesNamedRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesNamedRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServicesNamedRange() { + servicesNamedRange_ = getDefaultInstance().getServicesNamedRange(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the existing secondary range in the cluster's
+     * subnetwork to use for service ClusterIPs. Alternatively,
+     * services_cidr_block can be used to automatically create a GKE-managed one.
+     * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for servicesNamedRange to set. + * @return This builder for chaining. + */ + public Builder setServicesNamedRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servicesNamedRange_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> + masterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder + builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMasterAuthorizedNetworksConfig( + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && masterAuthorizedNetworksConfig_ != null + && masterAuthorizedNetworksConfig_ + != com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance()) { + getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + masterAuthorizedNetworksConfig_ = value; + } + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null + ? com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + .getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * Optional. Master Authorized Network that supports multiple CIDR blocks.
+     * Allows access to the k8s master from multiple blocks. It cannot be set at
+     * the same time with the field man_block.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig.Builder, + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + @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.telcoautomation.v1alpha1.StandardManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) + private static final com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.StandardManagementConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StandardManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.StandardManagementConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfigOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfigOrBuilder.java new file mode 100644 index 000000000000..b907286d67a9 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/StandardManagementConfigOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface StandardManagementConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.StandardManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Optional. Name of the VPC Network to put the GKE cluster and nodes in. The
+   * VPC will be created if it doesn't exist.
+   * 
+ * + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnet. + */ + java.lang.String getSubnet(); + /** + * + * + *
+   * Optional. Specifies the subnet that the interface will be part of. Network
+   * key must be specified and the subnet must be a subnetwork of the specified
+   * network.
+   * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnet. + */ + com.google.protobuf.ByteString getSubnetBytes(); + + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The masterIpv4CidrBlock. + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * Optional. The /28 network that the masters will use.
+   * 
+ * + * string master_ipv4_cidr_block = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterCidrBlock. + */ + java.lang.String getClusterCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster pod IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation
+   * (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string cluster_cidr_block = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterCidrBlock. + */ + com.google.protobuf.ByteString getClusterCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesCidrBlock. + */ + java.lang.String getServicesCidrBlock(); + /** + * + * + *
+   * Optional. The IP address range for the cluster service IPs. Set to blank to
+   * have a range chosen with the default size. Set to /netmask (e.g. /14) to
+   * have a range chosen with a specific netmask. Set to a CIDR notation (e.g.
+   * 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8,
+   * 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.
+   * 
+ * + * string services_cidr_block = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesCidrBlock. + */ + com.google.protobuf.ByteString getServicesCidrBlockBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamedRange. + */ + java.lang.String getClusterNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block
+   * can be used to automatically create a GKE-managed one.
+   * 
+ * + * string cluster_named_range = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamedRange. + */ + com.google.protobuf.ByteString getClusterNamedRangeBytes(); + + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The servicesNamedRange. + */ + java.lang.String getServicesNamedRange(); + /** + * + * + *
+   * Optional. The name of the existing secondary range in the cluster's
+   * subnetwork to use for service ClusterIPs. Alternatively,
+   * services_cidr_block can be used to automatically create a GKE-managed one.
+   * 
+ * + * string services_named_range = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for servicesNamedRange. + */ + com.google.protobuf.ByteString getServicesNamedRangeBytes(); + + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * Optional. Master Authorized Network that supports multiple CIDR blocks.
+   * Allows access to the k8s master from multiple blocks. It cannot be set at
+   * the same time with the field man_block.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Status.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Status.java new file mode 100644 index 000000000000..05695c3ddddf --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/Status.java @@ -0,0 +1,222 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Status of an entity (resource, deployment).
+ * 
+ * + * Protobuf enum {@code google.cloud.telcoautomation.v1alpha1.Status} + */ +public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown state.
+   * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+   * Under progress.
+   * 
+ * + * STATUS_IN_PROGRESS = 1; + */ + STATUS_IN_PROGRESS(1), + /** + * + * + *
+   * Running and ready to serve traffic.
+   * 
+ * + * STATUS_ACTIVE = 2; + */ + STATUS_ACTIVE(2), + /** + * + * + *
+   * Failed or stalled.
+   * 
+ * + * STATUS_FAILED = 3; + */ + STATUS_FAILED(3), + /** + * + * + *
+   * NFDeploy specific status.
+   * 
+ * + * STATUS_PEERING = 10; + */ + STATUS_PEERING(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown state.
+   * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Under progress.
+   * 
+ * + * STATUS_IN_PROGRESS = 1; + */ + public static final int STATUS_IN_PROGRESS_VALUE = 1; + /** + * + * + *
+   * Running and ready to serve traffic.
+   * 
+ * + * STATUS_ACTIVE = 2; + */ + public static final int STATUS_ACTIVE_VALUE = 2; + /** + * + * + *
+   * Failed or stalled.
+   * 
+ * + * STATUS_FAILED = 3; + */ + public static final int STATUS_FAILED_VALUE = 3; + /** + * + * + *
+   * NFDeploy specific status.
+   * 
+ * + * STATUS_PEERING = 10; + */ + public static final int STATUS_PEERING_VALUE = 10; + + 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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return STATUS_IN_PROGRESS; + case 2: + return STATUS_ACTIVE; + case 3: + return STATUS_FAILED; + case 10: + return STATUS_PEERING; + 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 Status findValueByNumber(int number) { + return Status.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.telcoautomation.v1alpha1.TelcoautomationProto.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.telcoautomation.v1alpha1.Status) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoautomationProto.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoautomationProto.java new file mode 100644 index 000000000000..455b2b2485f5 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoautomationProto.java @@ -0,0 +1,1581 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public final class TelcoautomationProto { + private TelcoautomationProto() {} + + 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_telcoautomation_v1alpha1_OrchestrationCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_File_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_File_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_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/telcoautomation/v1alpha1/" + + "telcoautomation.proto\022%google.cloud.telc" + + "oautomation.v1alpha1\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\033google/protobuf/empty.prot" + + "o\032 google/protobuf/field_mask.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\310\005\n\024Orchest" + + "rationCluster\022\014\n\004name\030\001 \001(\t\022R\n\021managemen" + + "t_config\030\005 \001(\01327.google.cloud.telcoautom" + + "ation.v1alpha1.ManagementConfig\0225\n\013creat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022W\n\006labels\030\004 \003(\0132G." + + "google.cloud.telcoautomation.v1alpha1.Or" + + "chestrationCluster.LabelsEntry\022\031\n\013tna_ve" + + "rsion\030\006 \001(\tB\004\342A\001\003\022V\n\005state\030\007 \001(\0162A.googl" + + "e.cloud.telcoautomation.v1alpha1.Orchest" + + "rationCluster.StateB\004\342A\001\003\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"R\n\005Stat" + + "e\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\n\n\006FAILED\020\004:\220\001\352" + + "A\214\001\n3telcoautomation.googleapis.com/Orch" + + "estrationCluster\022Uprojects/{project}/loc" + + "ations/{location}/orchestrationClusters/" + + "{orchestration_cluster}\"\324\006\n\007EdgeSlm\022\014\n\004n" + + "ame\030\001 \001(\t\022[\n\025orchestration_cluster\030\005 \001(\t" + + "B<\342A\001\005\372A5\n3telcoautomation.googleapis.co" + + "m/OrchestrationCluster\0225\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\003\022P\n\006labels\030\004 \003(\0132:.google.cl" + + "oud.telcoautomation.v1alpha1.EdgeSlm.Lab" + + "elsEntryB\004\342A\001\001\022\031\n\013tna_version\030\006 \001(\tB\004\342A\001" + + "\003\022I\n\005state\030\007 \001(\01624.google.cloud.telcoaut" + + "omation.v1alpha1.EdgeSlm.StateB\004\342A\001\003\022g\n\025" + + "workload_cluster_type\030\010 \001(\0162B.google.clo" + + "ud.telcoautomation.v1alpha1.EdgeSlm.Work" + + "loadClusterTypeB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"R\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006AC" + + "TIVE\020\002\022\014\n\010DELETING\020\003\022\n\n\006FAILED\020\004\"O\n\023Work" + + "loadClusterType\022%\n!WORKLOAD_CLUSTER_TYPE" + + "_UNSPECIFIED\020\000\022\010\n\004GDCE\020\001\022\007\n\003GKE\020\002:{\352Ax\n&" + + "telcoautomation.googleapis.com/EdgeSlm\022;" + + "projects/{project}/locations/{location}/" + + "edgeSlms/{edge_slm}*\010edgeSlms2\007edgeSlm\"\212" + + "\007\n\tBlueprint\022\014\n\004name\030\001 \001(\t\022\032\n\013revision_i" + + "d\030\002 \001(\tB\005\342A\002\005\003\022\037\n\020source_blueprint\030\003 \001(\t" + + "B\005\342A\002\002\005\022>\n\024revision_create_time\030\005 \001(\0132\032." + + "google.protobuf.TimestampB\004\342A\001\003\022\\\n\016appro" + + "val_state\030\006 \001(\0162>.google.cloud.telcoauto" + + "mation.v1alpha1.Blueprint.ApprovalStateB" + + "\004\342A\001\003\022\032\n\014display_name\030\007 \001(\tB\004\342A\001\001\022\030\n\nrep" + + "ository\030\010 \001(\tB\004\342A\001\003\022@\n\005files\030\t \003(\0132+.goo" + + "gle.cloud.telcoautomation.v1alpha1.FileB" + + "\004\342A\001\001\022R\n\006labels\030\n \003(\0132<.google.cloud.tel" + + "coautomation.v1alpha1.Blueprint.LabelsEn" + + "tryB\004\342A\001\001\0225\n\013create_time\030\013 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030" + + "\014 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "\035\n\017source_provider\030\r \001(\tB\004\342A\001\003\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"V\n" + + "\rApprovalState\022\036\n\032APPROVAL_STATE_UNSPECI" + + "FIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010PROPOSED\020\002\022\014\n\010APPRO" + + "VED\020\003:\263\001\352A\257\001\n(telcoautomation.googleapis" + + ".com/Blueprint\022lprojects/{project}/locat" + + "ions/{location}/orchestrationClusters/{o" + + "rchestration_cluster}/blueprints/{bluepr" + + "int}*\nblueprints2\tblueprint\"\277\003\n\017PublicBl" + + "ueprint\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 " + + "\001(\t\022\023\n\013description\030\003 \001(\t\022`\n\020deployment_l" + + "evel\030\004 \001(\0162F.google.cloud.telcoautomatio" + + "n.v1alpha1.PublicBlueprint.DeploymentLev" + + "el\022\027\n\017source_provider\030\005 \001(\t\"R\n\017Deploymen" + + "tLevel\022 \n\034DEPLOYMENT_LEVEL_UNSPECIFIED\020\000" + + "\022\r\n\tHYDRATION\020\001\022\016\n\nDEPLOYMENT\020\002:\243\001\352A\237\001\n." + + "telcoautomation.googleapis.com/PublicBlu" + + "eprint\022Jprojects/{project}/locations/{lo" + + "cation}/publicBlueprints/{public_lueprin" + + "t}*\020publicBlueprints2\017publicBlueprint\"\352\006" + + "\n\nDeployment\022\014\n\004name\030\001 \001(\t\022\032\n\013revision_i" + + "d\030\002 \001(\tB\005\342A\002\005\003\022(\n\031source_blueprint_revis" + + "ion\030\003 \001(\tB\005\342A\002\002\005\022>\n\024revision_create_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022L\n\005state\030\005 \001(\01627.google.cloud.telcoauto" + + "mation.v1alpha1.Deployment.StateB\004\342A\001\003\022\032" + + "\n\014display_name\030\006 \001(\tB\004\342A\001\001\022\030\n\nrepository" + + "\030\007 \001(\tB\004\342A\001\003\022@\n\005files\030\010 \003(\0132+.google.clo" + + "ud.telcoautomation.v1alpha1.FileB\004\342A\001\001\022S" + + "\n\006labels\030\t \003(\0132=.google.cloud.telcoautom" + + "ation.v1alpha1.Deployment.LabelsEntryB\004\342" + + "A\001\001\0225\n\013create_time\030\n \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\0225\n\013update_time\030\013 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\003\022\035\n\017sou" + + "rce_provider\030\014 \001(\tB\004\342A\001\003\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\013\n\007AP" + + "PLIED\020\002:\270\001\352A\264\001\n)telcoautomation.googleap" + + "is.com/Deployment\022nprojects/{project}/lo" + + "cations/{location}/orchestrationClusters" + + "/{orchestration_cluster}/deployments/{de" + + "ployment}*\013deployments2\ndeployment\"\226\004\n\022H" + + "ydratedDeployment\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022T\n" + + "\005state\030\002 \001(\0162?.google.cloud.telcoautomat" + + "ion.v1alpha1.HydratedDeployment.StateB\004\342" + + "A\001\003\022@\n\005files\030\003 \003(\0132+.google.cloud.telcoa" + + "utomation.v1alpha1.FileB\004\342A\001\001\022\036\n\020workloa" + + "d_cluster\030\004 \001(\tB\004\342A\001\003\"6\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\013\n\007APPLIED\020\002:\373\001" + + "\352A\367\001\n1telcoautomation.googleapis.com/Hyd" + + "ratedDeployment\022\230\001projects/{project}/loc" + + "ations/{location}/orchestrationClusters/" + + "{orchestration_cluster}/deployments/{dep" + + "loyment}/hydratedDeployments/{hydrated_d" + + "eployment}*\023hydratedDeployments2\022hydrate" + + "dDeployment\"\271\001\n ListOrchestrationCluster" + + "sRequest\022L\n\006parent\030\001 \001(\tB<\342A\001\002\372A5\0223telco" + + "automation.googleapis.com/OrchestrationC" + + "luster\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\"" + + "\256\001\n!ListOrchestrationClustersResponse\022[\n" + + "\026orchestration_clusters\030\001 \003(\0132;.google.c" + + "loud.telcoautomation.v1alpha1.Orchestrat" + + "ionCluster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"l\n\036GetOrchestrationClus" + + "terRequest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n3telco" + + "automation.googleapis.com/OrchestrationC" + + "luster\"\225\002\n!CreateOrchestrationClusterReq" + + "uest\022L\n\006parent\030\001 \001(\tB<\342A\001\002\372A5\0223telcoauto" + + "mation.googleapis.com/OrchestrationClust" + + "er\022&\n\030orchestration_cluster_id\030\002 \001(\tB\004\342A" + + "\001\002\022`\n\025orchestration_cluster\030\003 \001(\0132;.goog" + + "le.cloud.telcoautomation.v1alpha1.Orches" + + "trationClusterB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\t" + + "B\004\342A\001\001\"\211\001\n!DeleteOrchestrationClusterReq" + + "uest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n3telcoautoma" + + "tion.googleapis.com/OrchestrationCluster" + + "\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\"\237\001\n\023ListEdgeS" + + "lmsRequest\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\022&tel" + + "coautomation.googleapis.com/EdgeSlm\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\"\207\001\n\024ListEdg" + + "eSlmsResponse\022A\n\tedge_slms\030\001 \003(\0132..googl" + + "e.cloud.telcoautomation.v1alpha1.EdgeSlm" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable" + + "\030\003 \003(\t\"R\n\021GetEdgeSlmRequest\022=\n\004name\030\001 \001(" + + "\tB/\342A\001\002\372A(\n&telcoautomation.googleapis.c" + + "om/EdgeSlm\"\324\001\n\024CreateEdgeSlmRequest\022?\n\006p" + + "arent\030\001 \001(\tB/\342A\001\002\372A(\022&telcoautomation.go" + + "ogleapis.com/EdgeSlm\022\031\n\013edge_slm_id\030\002 \001(" + + "\tB\004\342A\001\002\022F\n\010edge_slm\030\003 \001(\0132..google.cloud" + + ".telcoautomation.v1alpha1.EdgeSlmB\004\342A\001\002\022" + + "\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"o\n\024DeleteEdgeS" + + "lmRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&telcoa" + + "utomation.googleapis.com/EdgeSlm\022\030\n\nrequ" + + "est_id\030\002 \001(\tB\004\342A\001\001\"\302\001\n\026CreateBlueprintRe" + + "quest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(telcoaut" + + "omation.googleapis.com/Blueprint\022\032\n\014blue" + + "print_id\030\002 \001(\tB\004\342A\001\001\022I\n\tblueprint\030\003 \001(\0132" + + "0.google.cloud.telcoautomation.v1alpha1." + + "BlueprintB\004\342A\001\002\"\232\001\n\026UpdateBlueprintReque" + + "st\022I\n\tblueprint\030\001 \001(\01320.google.cloud.tel" + + "coautomation.v1alpha1.BlueprintB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\004\342A\001\002\"\240\001\n\023GetBlueprintRequest\022?\n\004" + + "name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomation.goo" + + "gleapis.com/Blueprint\022H\n\004view\030\002 \001(\01624.go" + + "ogle.cloud.telcoautomation.v1alpha1.Blue" + + "printViewB\004\342A\001\001\"Y\n\026DeleteBlueprintReques" + + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomatio" + + "n.googleapis.com/Blueprint\"a\n\036DeleteBlue" + + "printRevisionRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002" + + "\372A*\n(telcoautomation.googleapis.com/Blue" + + "print\"\243\001\n\025ListBlueprintsRequest\022A\n\006paren" + + "t\030\001 \001(\tB1\342A\001\002\372A*\022(telcoautomation.google" + + "apis.com/Blueprint\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030" + + "\003 \001(\tB\004\342A\001\001\"w\n\026ListBlueprintsResponse\022D\n" + + "\nblueprints\030\001 \003(\01320.google.cloud.telcoau" + + "tomation.v1alpha1.Blueprint\022\027\n\017next_page" + + "_token\030\002 \001(\t\"Z\n\027ApproveBlueprintRequest\022" + + "?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomation." + + "googleapis.com/Blueprint\"Z\n\027ProposeBluep" + + "rintRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telc" + + "oautomation.googleapis.com/Blueprint\"Y\n\026" + + "RejectBlueprintRequest\022?\n\004name\030\001 \001(\tB1\342A" + + "\001\002\372A*\n(telcoautomation.googleapis.com/Bl" + + "ueprint\"\207\001\n\035ListBlueprintRevisionsReques" + + "t\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(telcoautomatio" + + "n.googleapis.com/Blueprint\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\036ListBluepri" + + "ntRevisionsResponse\022D\n\nblueprints\030\001 \003(\0132" + + "0.google.cloud.telcoautomation.v1alpha1." + + "Blueprint\022\027\n\017next_page_token\030\002 \001(\t\"\254\001\n\037S" + + "earchBlueprintRevisionsRequest\022A\n\006parent" + + "\030\001 \001(\tB1\342A\001\002\372A*\022(telcoautomation.googlea" + + "pis.com/Blueprint\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022\027" + + "\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 " + + "\001(\tB\004\342A\001\001\"\201\001\n SearchBlueprintRevisionsRe" + + "sponse\022D\n\nblueprints\030\001 \003(\01320.google.clou" + + "d.telcoautomation.v1alpha1.Blueprint\022\027\n\017" + + "next_page_token\030\002 \001(\t\"a\n\036DiscardBlueprin" + + "tChangesRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(" + + "telcoautomation.googleapis.com/Blueprint" + + "\"!\n\037DiscardBlueprintChangesResponse\"\231\001\n\033" + + "ListPublicBlueprintsRequest\022G\n\006parent\030\001 " + + "\001(\tB7\342A\001\002\372A0\022.telcoautomation.googleapis" + + ".com/PublicBlueprint\022\027\n\tpage_size\030\002 \001(\005B" + + "\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\220\001\n\034List" + + "PublicBlueprintsResponse\022Q\n\021public_bluep" + + "rints\030\001 \003(\01326.google.cloud.telcoautomati" + + "on.v1alpha1.PublicBlueprint\022\035\n\017next_page" + + "_token\030\002 \001(\tB\004\342A\001\003\"b\n\031GetPublicBlueprint" + + "Request\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.telcoaut" + + "omation.googleapis.com/PublicBlueprint\"\307" + + "\001\n\027CreateDeploymentRequest\022B\n\006parent\030\001 \001" + + "(\tB2\342A\001\002\372A+\022)telcoautomation.googleapis." + + "com/Deployment\022\033\n\rdeployment_id\030\002 \001(\tB\004\342" + + "A\001\001\022K\n\ndeployment\030\003 \001(\01321.google.cloud.t" + + "elcoautomation.v1alpha1.DeploymentB\004\342A\001\002" + + "\"\235\001\n\027UpdateDeploymentRequest\022K\n\ndeployme" + + "nt\030\001 \001(\01321.google.cloud.telcoautomation." + + "v1alpha1.DeploymentB\004\342A\001\002\0225\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + + "\"\243\001\n\024GetDeploymentRequest\022@\n\004name\030\001 \001(\tB" + + "2\342A\001\002\372A+\n)telcoautomation.googleapis.com" + + "/Deployment\022I\n\004view\030\002 \001(\01625.google.cloud" + + ".telcoautomation.v1alpha1.DeploymentView" + + "B\004\342A\001\001\"[\n\027DeleteDeploymentRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\342A\001\002\372A+\n)telcoautomation.google" + + "apis.com/Deployment\"[\n\027RemoveDeploymentR" + + "equest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)telcoauto" + + "mation.googleapis.com/Deployment\"c\n\037Dele" + + "teDeploymentRevisionRequest\022@\n\004name\030\001 \001(" + + "\tB2\342A\001\002\372A+\n)telcoautomation.googleapis.c" + + "om/Deployment\"\245\001\n\026ListDeploymentsRequest" + + "\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\022)telcoautomati" + + "on.googleapis.com/Deployment\022\024\n\006filter\030\004" + + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\np" + + "age_token\030\003 \001(\tB\004\342A\001\001\"z\n\027ListDeployments" + + "Response\022F\n\013deployments\030\001 \003(\01321.google.c" + + "loud.telcoautomation.v1alpha1.Deployment" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\225\001\n\036ListDeploy" + + "mentRevisionsRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002" + + "\372A+\n)telcoautomation.googleapis.com/Depl" + + "oyment\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" + + "token\030\003 \001(\tB\004\342A\001\001\"\202\001\n\037ListDeploymentRevi" + + "sionsResponse\022F\n\013deployments\030\001 \003(\01321.goo" + + "gle.cloud.telcoautomation.v1alpha1.Deplo" + + "yment\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n Searc" + + "hDeploymentRevisionsRequest\022A\n\006parent\030\001 " + + "\001(\tB1\342A\001\002\372A*\022(telcoautomation.googleapis" + + ".com/Blueprint\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022\027\n\tp" + + "age_size\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004 \001(\t" + + "B\004\342A\001\001\"\204\001\n!SearchDeploymentRevisionsResp" + + "onse\022F\n\013deployments\030\001 \003(\01321.google.cloud" + + ".telcoautomation.v1alpha1.Deployment\022\027\n\017" + + "next_page_token\030\002 \001(\t\"c\n\037DiscardDeployme" + + "ntChangesRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")telcoautomation.googleapis.com/Deployme" + + "nt\"\"\n DiscardDeploymentChangesResponse\"Z" + + "\n\026ApplyDeploymentRequest\022@\n\004name\030\001 \001(\tB2" + + "\342A\001\002\372A+\n)telcoautomation.googleapis.com/" + + "Deployment\"b\n\036ComputeDeploymentStatusReq" + + "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)telcoautoma" + + "tion.googleapis.com/Deployment\"\314\001\n\037Compu" + + "teDeploymentStatusResponse\022\014\n\004name\030\001 \001(\t" + + "\022C\n\006status\030\002 \001(\0162-.google.cloud.telcoaut" + + "omation.v1alpha1.StatusB\004\342A\001\003\022V\n\021resourc" + + "e_statuses\030\003 \003(\01325.google.cloud.telcoaut" + + "omation.v1alpha1.ResourceStatusB\004\342A\001\003\"x\n" + + "\031RollbackDeploymentRequest\022@\n\004name\030\001 \001(\t" + + "B2\342A\001\002\372A+\n)telcoautomation.googleapis.co" + + "m/Deployment\022\031\n\013revision_id\030\002 \001(\tB\004\342A\001\002\"" + + "\207\002\n\021OperationMetadata\0225\n\013create_time\030\001 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n\010" + + "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004" + + " \001(\tB\004\342A\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003" + + "\022$\n\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031" + + "\n\013api_version\030\007 \001(\tB\004\342A\001\003\"h\n\034GetHydrated" + + "DeploymentRequest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3" + + "\n1telcoautomation.googleapis.com/Hydrate" + + "dDeployment\"\237\001\n\036ListHydratedDeploymentsR" + + "equest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221telcoau" + + "tomation.googleapis.com/HydratedDeployme" + + "nt\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_toke" + + "n\030\003 \001(\tB\004\342A\001\001\"\223\001\n\037ListHydratedDeployment" + + "sResponse\022W\n\024hydrated_deployments\030\001 \003(\0132" + + "9.google.cloud.telcoautomation.v1alpha1." + + "HydratedDeployment\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\266\001\n\037UpdateHydratedDeploymentRequest\022" + + "\\\n\023hydrated_deployment\030\001 \001(\01329.google.cl" + + "oud.telcoautomation.v1alpha1.HydratedDep" + + "loymentB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\004\342A\001\002\"j\n\036ApplyHyd" + + "ratedDeploymentRequest\022H\n\004name\030\001 \001(\tB:\342A" + + "\001\002\372A3\n1telcoautomation.googleapis.com/Hy" + + "dratedDeployment\"\350\001\n\020ManagementConfig\022e\n" + + "\032standard_management_config\030\001 \001(\0132?.goog" + + "le.cloud.telcoautomation.v1alpha1.Standa" + + "rdManagementConfigH\000\022]\n\026full_management_" + + "config\030\002 \001(\0132;.google.cloud.telcoautomat" + + "ion.v1alpha1.FullManagementConfigH\000B\016\n\014o" + + "neof_config\"\361\002\n\030StandardManagementConfig" + + "\022\025\n\007network\030\001 \001(\tB\004\342A\001\001\022\024\n\006subnet\030\002 \001(\tB" + + "\004\342A\001\001\022$\n\026master_ipv4_cidr_block\030\003 \001(\tB\004\342" + + "A\001\001\022 \n\022cluster_cidr_block\030\004 \001(\tB\004\342A\001\001\022!\n" + + "\023services_cidr_block\030\005 \001(\tB\004\342A\001\001\022!\n\023clus" + + "ter_named_range\030\006 \001(\tB\004\342A\001\001\022\"\n\024services_" + + "named_range\030\007 \001(\tB\004\342A\001\001\022v\n!master_author" + + "ized_networks_config\030\010 \001(\0132E.google.clou" + + "d.telcoautomation.v1alpha1.MasterAuthori" + + "zedNetworksConfigB\004\342A\001\001\"\355\002\n\024FullManageme" + + "ntConfig\022\025\n\007network\030\001 \001(\tB\004\342A\001\001\022\024\n\006subne" + + "t\030\002 \001(\tB\004\342A\001\001\022$\n\026master_ipv4_cidr_block\030" + + "\003 \001(\tB\004\342A\001\001\022 \n\022cluster_cidr_block\030\004 \001(\tB" + + "\004\342A\001\001\022!\n\023services_cidr_block\030\005 \001(\tB\004\342A\001\001" + + "\022!\n\023cluster_named_range\030\006 \001(\tB\004\342A\001\001\022\"\n\024s" + + "ervices_named_range\030\007 \001(\tB\004\342A\001\001\022v\n!maste" + + "r_authorized_networks_config\030\010 \001(\0132E.goo" + + "gle.cloud.telcoautomation.v1alpha1.Maste" + + "rAuthorizedNetworksConfigB\004\342A\001\001\"\317\001\n\036Mast" + + "erAuthorizedNetworksConfig\022j\n\013cidr_block" + + "s\030\001 \003(\0132O.google.cloud.telcoautomation.v" + + "1alpha1.MasterAuthorizedNetworksConfig.C" + + "idrBlockB\004\342A\001\001\032A\n\tCidrBlock\022\032\n\014display_n" + + "ame\030\001 \001(\tB\004\342A\001\001\022\030\n\ncidr_block\030\002 \001(\tB\004\342A\001" + + "\001\"`\n\004File\022\022\n\004path\030\001 \001(\tB\004\342A\001\002\022\025\n\007content" + + "\030\002 \001(\tB\004\342A\001\001\022\025\n\007deleted\030\003 \001(\010B\004\342A\001\001\022\026\n\010e" + + "ditable\030\004 \001(\010B\004\342A\001\001\"\377\001\n\016ResourceStatus\022\014" + + "\n\004name\030\001 \001(\t\022\032\n\022resource_namespace\030\002 \001(\t" + + "\022\r\n\005group\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\014\n\004kind" + + "\030\005 \001(\t\022P\n\rresource_type\030\006 \001(\01623.google.c" + + "loud.telcoautomation.v1alpha1.ResourceTy" + + "peB\004\342A\001\003\022C\n\006status\030\007 \001(\0162-.google.cloud." + + "telcoautomation.v1alpha1.StatusB\004\342A\001\003*b\n" + + "\rBlueprintView\022\036\n\032BLUEPRINT_VIEW_UNSPECI" + + "FIED\020\000\022\030\n\024BLUEPRINT_VIEW_BASIC\020\001\022\027\n\023BLUE" + + "PRINT_VIEW_FULL\020\002*f\n\016DeploymentView\022\037\n\033D" + + "EPLOYMENT_VIEW_UNSPECIFIED\020\000\022\031\n\025DEPLOYME" + + "NT_VIEW_BASIC\020\001\022\030\n\024DEPLOYMENT_VIEW_FULL\020" + + "\002*k\n\014ResourceType\022\035\n\031RESOURCE_TYPE_UNSPE" + + "CIFIED\020\000\022\035\n\031NF_DEPLOY_CUSTOM_RESOURCE\020\001\022" + + "\035\n\031BLUEPRINT_CUSTOM_RESOURCE\020\002*r\n\006Status" + + "\022\026\n\022STATUS_UNSPECIFIED\020\000\022\026\n\022STATUS_IN_PR" + + "OGRESS\020\001\022\021\n\rSTATUS_ACTIVE\020\002\022\021\n\rSTATUS_FA" + + "ILED\020\003\022\022\n\016STATUS_PEERING\020\n2\227N\n\017TelcoAuto" + + "mation\022\200\002\n\031ListOrchestrationClusters\022G.g" + + "oogle.cloud.telcoautomation.v1alpha1.Lis" + + "tOrchestrationClustersRequest\032H.google.c" + + "loud.telcoautomation.v1alpha1.ListOrches" + + "trationClustersResponse\"P\332A\006parent\202\323\344\223\002A" + + "\022?/v1alpha1/{parent=projects/*/locations" + + "/*}/orchestrationClusters\022\355\001\n\027GetOrchest" + + "rationCluster\022E.google.cloud.telcoautoma" + + "tion.v1alpha1.GetOrchestrationClusterReq" + + "uest\032;.google.cloud.telcoautomation.v1al" + + "pha1.OrchestrationCluster\"N\332A\004name\202\323\344\223\002A" + + "\022?/v1alpha1/{name=projects/*/locations/*" + + "/orchestrationClusters/*}\022\312\002\n\032CreateOrch" + + "estrationCluster\022H.google.cloud.telcoaut" + + "omation.v1alpha1.CreateOrchestrationClus" + + "terRequest\032\035.google.longrunning.Operatio" + + "n\"\302\001\312A)\n\024OrchestrationCluster\022\021Operation" + + "Metadata\332A5parent,orchestration_cluster," + + "orchestration_cluster_id\202\323\344\223\002X\"?/v1alpha" + + "1/{parent=projects/*/locations/*}/orches" + + "trationClusters:\025orchestration_cluster\022\202" + + "\002\n\032DeleteOrchestrationCluster\022H.google.c" + + "loud.telcoautomation.v1alpha1.DeleteOrch" + + "estrationClusterRequest\032\035.google.longrun" + + "ning.Operation\"{\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002A*?/v1a" + + "lpha1/{name=projects/*/locations/*/orche" + + "strationClusters/*}\022\314\001\n\014ListEdgeSlms\022:.g" + + "oogle.cloud.telcoautomation.v1alpha1.Lis" + + "tEdgeSlmsRequest\032;.google.cloud.telcoaut" + + "omation.v1alpha1.ListEdgeSlmsResponse\"C\332" + + "A\006parent\202\323\344\223\0024\0222/v1alpha1/{parent=projec" + + "ts/*/locations/*}/edgeSlms\022\271\001\n\nGetEdgeSl" + + "m\0228.google.cloud.telcoautomation.v1alpha" + + "1.GetEdgeSlmRequest\032..google.cloud.telco" + + "automation.v1alpha1.EdgeSlm\"A\332A\004name\202\323\344\223" + + "\0024\0222/v1alpha1/{name=projects/*/locations" + + "/*/edgeSlms/*}\022\357\001\n\rCreateEdgeSlm\022;.googl" + + "e.cloud.telcoautomation.v1alpha1.CreateE" + + "dgeSlmRequest\032\035.google.longrunning.Opera" + + "tion\"\201\001\312A\034\n\007EdgeSlm\022\021OperationMetadata\332A" + + "\033parent,edge_slm,edge_slm_id\202\323\344\223\002>\"2/v1a" + + "lpha1/{parent=projects/*/locations/*}/ed" + + "geSlms:\010edge_slm\022\333\001\n\rDeleteEdgeSlm\022;.goo" + + "gle.cloud.telcoautomation.v1alpha1.Delet" + + "eEdgeSlmRequest\032\035.google.longrunning.Ope" + + "ration\"n\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\0024*2/v1alpha1/{n" + + "ame=projects/*/locations/*/edgeSlms/*}\022\203" + + "\002\n\017CreateBlueprint\022=.google.cloud.telcoa", + "utomation.v1alpha1.CreateBlueprintReques" + + "t\0320.google.cloud.telcoautomation.v1alpha" + + "1.Blueprint\"\177\332A\035parent,blueprint,bluepri" + + "nt_id\202\323\344\223\002Y\"L/v1alpha1/{parent=projects/" + + "*/locations/*/orchestrationClusters/*}/b" + + "lueprints:\tblueprint\022\206\002\n\017UpdateBlueprint" + + "\022=.google.cloud.telcoautomation.v1alpha1" + + ".UpdateBlueprintRequest\0320.google.cloud.t" + + "elcoautomation.v1alpha1.Blueprint\"\201\001\332A\025b" + + "lueprint,update_mask\202\323\344\223\002c2V/v1alpha1/{b" + + "lueprint.name=projects/*/locations/*/orc" + + "hestrationClusters/*/blueprints/*}:\tblue" + + "print\022\331\001\n\014GetBlueprint\022:.google.cloud.te" + + "lcoautomation.v1alpha1.GetBlueprintReque" + + "st\0320.google.cloud.telcoautomation.v1alph" + + "a1.Blueprint\"[\332A\004name\202\323\344\223\002N\022L/v1alpha1/{" + + "name=projects/*/locations/*/orchestratio" + + "nClusters/*/blueprints/*}\022\305\001\n\017DeleteBlue" + + "print\022=.google.cloud.telcoautomation.v1a" + + "lpha1.DeleteBlueprintRequest\032\026.google.pr" + + "otobuf.Empty\"[\332A\004name\202\323\344\223\002N*L/v1alpha1/{" + + "name=projects/*/locations/*/orchestratio" + + "nClusters/*/blueprints/*}\022\367\001\n\027DeleteBlue" + + "printRevision\022E.google.cloud.telcoautoma" + + "tion.v1alpha1.DeleteBlueprintRevisionReq" + + "uest\0320.google.cloud.telcoautomation.v1al" + + "pha1.Blueprint\"c\202\323\344\223\002]*[/v1alpha1/{name=" + + "projects/*/locations/*/orchestrationClus" + + "ters/*/blueprints/*}:deleteRevision\022\354\001\n\016" + + "ListBlueprints\022<.google.cloud.telcoautom" + + "ation.v1alpha1.ListBlueprintsRequest\032=.g" + + "oogle.cloud.telcoautomation.v1alpha1.Lis" + + "tBlueprintsResponse\"]\332A\006parent\202\323\344\223\002N\022L/v" + + "1alpha1/{parent=projects/*/locations/*/o" + + "rchestrationClusters/*}/blueprints\022\354\001\n\020A" + + "pproveBlueprint\022>.google.cloud.telcoauto" + + "mation.v1alpha1.ApproveBlueprintRequest\032" + + "0.google.cloud.telcoautomation.v1alpha1." + + "Blueprint\"f\332A\004name\202\323\344\223\002Y\"T/v1alpha1/{nam" + + "e=projects/*/locations/*/orchestrationCl" + + "usters/*/blueprints/*}:approve:\001*\022\354\001\n\020Pr" + + "oposeBlueprint\022>.google.cloud.telcoautom" + + "ation.v1alpha1.ProposeBlueprintRequest\0320" + + ".google.cloud.telcoautomation.v1alpha1.B" + + "lueprint\"f\332A\004name\202\323\344\223\002Y\"T/v1alpha1/{name" + + "=projects/*/locations/*/orchestrationClu" + + "sters/*/blueprints/*}:propose:\001*\022\351\001\n\017Rej" + + "ectBlueprint\022=.google.cloud.telcoautomat" + + "ion.v1alpha1.RejectBlueprintRequest\0320.go" + + "ogle.cloud.telcoautomation.v1alpha1.Blue" + + "print\"e\332A\004name\202\323\344\223\002X\"S/v1alpha1/{name=pr" + + "ojects/*/locations/*/orchestrationCluste" + + "rs/*/blueprints/*}:reject:\001*\022\220\002\n\026ListBlu" + + "eprintRevisions\022D.google.cloud.telcoauto" + + "mation.v1alpha1.ListBlueprintRevisionsRe" + + "quest\032E.google.cloud.telcoautomation.v1a" + + "lpha1.ListBlueprintRevisionsResponse\"i\332A" + + "\004name\202\323\344\223\002\\\022Z/v1alpha1/{name=projects/*/" + + "locations/*/orchestrationClusters/*/blue" + + "prints/*}:listRevisions\022\240\002\n\030SearchBluepr" + + "intRevisions\022F.google.cloud.telcoautomat" + + "ion.v1alpha1.SearchBlueprintRevisionsReq" + + "uest\032G.google.cloud.telcoautomation.v1al" + + "pha1.SearchBlueprintRevisionsResponse\"s\332" + + "A\014parent,query\202\323\344\223\002^\022\\/v1alpha1/{parent=" + + "projects/*/locations/*/orchestrationClus" + + "ters/*}/blueprints:searchRevisions\022\244\002\n\031S" + + "earchDeploymentRevisions\022G.google.cloud." + + "telcoautomation.v1alpha1.SearchDeploymen" + + "tRevisionsRequest\032H.google.cloud.telcoau" + + "tomation.v1alpha1.SearchDeploymentRevisi" + + "onsResponse\"t\332A\014parent,query\202\323\344\223\002_\022]/v1a" + + "lpha1/{parent=projects/*/locations/*/orc" + + "hestrationClusters/*}/deployments:search" + + "Revisions\022\220\002\n\027DiscardBlueprintChanges\022E." + + "google.cloud.telcoautomation.v1alpha1.Di" + + "scardBlueprintChangesRequest\032F.google.cl" + + "oud.telcoautomation.v1alpha1.DiscardBlue" + + "printChangesResponse\"f\332A\004name\202\323\344\223\002Y\"T/v1" + + "alpha1/{name=projects/*/locations/*/orch" + + "estrationClusters/*/blueprints/*}:discar" + + "d:\001*\022\354\001\n\024ListPublicBlueprints\022B.google.c" + + "loud.telcoautomation.v1alpha1.ListPublic" + + "BlueprintsRequest\032C.google.cloud.telcoau" + + "tomation.v1alpha1.ListPublicBlueprintsRe" + + "sponse\"K\332A\006parent\202\323\344\223\002<\022:/v1alpha1/{pare" + + "nt=projects/*/locations/*}/publicBluepri" + + "nts\022\331\001\n\022GetPublicBlueprint\022@.google.clou" + + "d.telcoautomation.v1alpha1.GetPublicBlue" + + "printRequest\0326.google.cloud.telcoautomat" + + "ion.v1alpha1.PublicBlueprint\"I\332A\004name\202\323\344" + + "\223\002<\022:/v1alpha1/{name=projects/*/location" + + "s/*/publicBlueprints/*}\022\213\002\n\020CreateDeploy" + + "ment\022>.google.cloud.telcoautomation.v1al" + + "pha1.CreateDeploymentRequest\0321.google.cl" + + "oud.telcoautomation.v1alpha1.Deployment\"" + + "\203\001\332A\037parent,deployment,deployment_id\202\323\344\223" + + "\002[\"M/v1alpha1/{parent=projects/*/locatio" + + "ns/*/orchestrationClusters/*}/deployment" + + "s:\ndeployment\022\215\002\n\020UpdateDeployment\022>.goo" + + "gle.cloud.telcoautomation.v1alpha1.Updat" + + "eDeploymentRequest\0321.google.cloud.telcoa" + + "utomation.v1alpha1.Deployment\"\205\001\332A\026deplo" + + "yment,update_mask\202\323\344\223\002f2X/v1alpha1/{depl" + + "oyment.name=projects/*/locations/*/orche" + + "strationClusters/*/deployments/*}:\ndeplo" + + "yment\022\335\001\n\rGetDeployment\022;.google.cloud.t" + + "elcoautomation.v1alpha1.GetDeploymentReq" + + "uest\0321.google.cloud.telcoautomation.v1al" + + "pha1.Deployment\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha" + + "1/{name=projects/*/locations/*/orchestra" + + "tionClusters/*/deployments/*}\022\310\001\n\020Delete" + + "Deployment\022>.google.cloud.telcoautomatio" + + "n.v1alpha1.DeleteDeploymentRequest\032\026.goo" + + "gle.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M/v1al" + + "pha1/{name=projects/*/locations/*/orches" + + "trationClusters/*/deployments/*}\022\322\001\n\020Rem" + + "oveDeployment\022>.google.cloud.telcoautoma" + + "tion.v1alpha1.RemoveDeploymentRequest\032\026." + + "google.protobuf.Empty\"f\332A\004name\202\323\344\223\002Y\"T/v" + + "1alpha1/{name=projects/*/locations/*/orc" + + "hestrationClusters/*/deployments/*}:remo" + + "ve:\001*\022\373\001\n\030DeleteDeploymentRevision\022F.goo" + + "gle.cloud.telcoautomation.v1alpha1.Delet" + + "eDeploymentRevisionRequest\0321.google.clou" + + "d.telcoautomation.v1alpha1.Deployment\"d\202" + + "\323\344\223\002^*\\/v1alpha1/{name=projects/*/locati" + + "ons/*/orchestrationClusters/*/deployment" + + "s/*}:deleteRevision\022\360\001\n\017ListDeployments\022" + + "=.google.cloud.telcoautomation.v1alpha1." + + "ListDeploymentsRequest\032>.google.cloud.te" + + "lcoautomation.v1alpha1.ListDeploymentsRe" + + "sponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alpha1/{pare" + + "nt=projects/*/locations/*/orchestrationC" + + "lusters/*}/deployments\022\224\002\n\027ListDeploymen" + + "tRevisions\022E.google.cloud.telcoautomatio" + + "n.v1alpha1.ListDeploymentRevisionsReques" + + "t\032F.google.cloud.telcoautomation.v1alpha" + + "1.ListDeploymentRevisionsResponse\"j\332A\004na" + + "me\202\323\344\223\002]\022[/v1alpha1/{name=projects/*/loc" + + "ations/*/orchestrationClusters/*/deploym" + + "ents/*}:listRevisions\022\224\002\n\030DiscardDeploym" + + "entChanges\022F.google.cloud.telcoautomatio" + + "n.v1alpha1.DiscardDeploymentChangesReque" + + "st\032G.google.cloud.telcoautomation.v1alph" + + "a1.DiscardDeploymentChangesResponse\"g\332A\004" + + "name\202\323\344\223\002Z\"U/v1alpha1/{name=projects/*/l" + + "ocations/*/orchestrationClusters/*/deplo" + + "yments/*}:discard:\001*\022\352\001\n\017ApplyDeployment" + + "\022=.google.cloud.telcoautomation.v1alpha1" + + ".ApplyDeploymentRequest\0321.google.cloud.t" + + "elcoautomation.v1alpha1.Deployment\"e\332A\004n" + + "ame\202\323\344\223\002X\"S/v1alpha1/{name=projects/*/lo" + + "cations/*/orchestrationClusters/*/deploy" + + "ments/*}:apply:\001*\022\236\002\n\027ComputeDeploymentS" + + "tatus\022E.google.cloud.telcoautomation.v1a" + + "lpha1.ComputeDeploymentStatusRequest\032F.g" + + "oogle.cloud.telcoautomation.v1alpha1.Com" + + "puteDeploymentStatusResponse\"t\332A\004name\202\323\344" + + "\223\002g\022e/v1alpha1/{name=projects/*/location" + + "s/*/orchestrationClusters/*/deployments/" + + "*}:computeDeploymentStatus\022\377\001\n\022RollbackD" + + "eployment\022@.google.cloud.telcoautomation" + + ".v1alpha1.RollbackDeploymentRequest\0321.go" + + "ogle.cloud.telcoautomation.v1alpha1.Depl" + + "oyment\"t\332A\020name,revision_id\202\323\344\223\002[\"V/v1al" + + "pha1/{name=projects/*/locations/*/orches" + + "trationClusters/*/deployments/*}:rollbac" + + "k:\001*\022\213\002\n\025GetHydratedDeployment\022C.google." + + "cloud.telcoautomation.v1alpha1.GetHydrat" + + "edDeploymentRequest\0329.google.cloud.telco" + + "automation.v1alpha1.HydratedDeployment\"r" + + "\332A\004name\202\323\344\223\002e\022c/v1alpha1/{name=projects/" + + "*/locations/*/orchestrationClusters/*/de" + + "ployments/*/hydratedDeployments/*}\022\236\002\n\027L" + + "istHydratedDeployments\022E.google.cloud.te" + + "lcoautomation.v1alpha1.ListHydratedDeplo" + + "ymentsRequest\032F.google.cloud.telcoautoma" + + "tion.v1alpha1.ListHydratedDeploymentsRes" + + "ponse\"t\332A\006parent\202\323\344\223\002e\022c/v1alpha1/{paren" + + "t=projects/*/locations/*/orchestrationCl" + + "usters/*/deployments/*}/hydratedDeployme" + + "nts\022\327\002\n\030UpdateHydratedDeployment\022F.googl" + + "e.cloud.telcoautomation.v1alpha1.UpdateH" + + "ydratedDeploymentRequest\0329.google.cloud." + + "telcoautomation.v1alpha1.HydratedDeploym" + + "ent\"\267\001\332A\037hydrated_deployment,update_mask" + + "\202\323\344\223\002\216\0012w/v1alpha1/{hydrated_deployment." + + "name=projects/*/locations/*/orchestratio" + + "nClusters/*/deployments/*/hydratedDeploy" + + "ments/*}:\023hydrated_deployment\022\230\002\n\027ApplyH" + + "ydratedDeployment\022E.google.cloud.telcoau" + + "tomation.v1alpha1.ApplyHydratedDeploymen" + + "tRequest\0329.google.cloud.telcoautomation." + + "v1alpha1.HydratedDeployment\"{\332A\004name\202\323\344\223" + + "\002n\"i/v1alpha1/{name=projects/*/locations" + + "/*/orchestrationClusters/*/deployments/*" + + "/hydratedDeployments/*}:apply:\001*\032R\312A\036tel" + + "coautomation.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\230\001\n" + + ")com.google.cloud.telcoautomation.v1alph" + + "a1B\024TelcoautomationProtoP\001ZScloud.google" + + ".com/go/telcoautomation/apiv1alpha1/telc" + + "oautomationpb;telcoautomationpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_descriptor, + new java.lang.String[] { + "Name", + "ManagementConfig", + "CreateTime", + "UpdateTime", + "Labels", + "TnaVersion", + "State", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_OrchestrationCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_descriptor, + new java.lang.String[] { + "Name", + "OrchestrationCluster", + "CreateTime", + "UpdateTime", + "Labels", + "TnaVersion", + "State", + "WorkloadClusterType", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_EdgeSlm_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor, + new java.lang.String[] { + "Name", + "RevisionId", + "SourceBlueprint", + "RevisionCreateTime", + "ApprovalState", + "DisplayName", + "Repository", + "Files", + "Labels", + "CreateTime", + "UpdateTime", + "SourceProvider", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_Blueprint_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_PublicBlueprint_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "DeploymentLevel", "SourceProvider", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor, + new java.lang.String[] { + "Name", + "RevisionId", + "SourceBlueprintRevision", + "RevisionCreateTime", + "State", + "DisplayName", + "Repository", + "Files", + "Labels", + "CreateTime", + "UpdateTime", + "SourceProvider", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_LabelsEntry_descriptor = + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_Deployment_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_HydratedDeployment_descriptor, + new java.lang.String[] { + "Name", "State", "Files", "WorkloadCluster", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListOrchestrationClustersResponse_descriptor, + new java.lang.String[] { + "OrchestrationClusters", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_GetOrchestrationClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_CreateOrchestrationClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "OrchestrationClusterId", "OrchestrationCluster", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteOrchestrationClusterRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListEdgeSlmsResponse_descriptor, + new java.lang.String[] { + "EdgeSlms", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_GetEdgeSlmRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_CreateEdgeSlmRequest_descriptor, + new java.lang.String[] { + "Parent", "EdgeSlmId", "EdgeSlm", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteEdgeSlmRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_CreateBlueprintRequest_descriptor, + new java.lang.String[] { + "Parent", "BlueprintId", "Blueprint", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_descriptor, + new java.lang.String[] { + "Blueprint", "UpdateMask", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_GetBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteBlueprintRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintsResponse_descriptor, + new java.lang.String[] { + "Blueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ApproveBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ProposeBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_RejectBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListBlueprintRevisionsResponse_descriptor, + new java.lang.String[] { + "Blueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Query", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_SearchBlueprintRevisionsResponse_descriptor, + new java.lang.String[] { + "Blueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardBlueprintChangesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListPublicBlueprintsResponse_descriptor, + new java.lang.String[] { + "PublicBlueprints", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_GetPublicBlueprintRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_CreateDeploymentRequest_descriptor, + new java.lang.String[] { + "Parent", "DeploymentId", "Deployment", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_descriptor, + new java.lang.String[] { + "Deployment", "UpdateMask", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_GetDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_RemoveDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DeleteDeploymentRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListDeploymentRevisionsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Query", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_SearchDeploymentRevisionsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_DiscardDeploymentChangesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ComputeDeploymentStatusResponse_descriptor, + new java.lang.String[] { + "Name", "Status", "ResourceStatuses", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_RollbackDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_GetHydratedDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ListHydratedDeploymentsResponse_descriptor, + new java.lang.String[] { + "HydratedDeployments", "NextPageToken", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_descriptor, + new java.lang.String[] { + "HydratedDeployment", "UpdateMask", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ApplyHydratedDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ManagementConfig_descriptor, + new java.lang.String[] { + "StandardManagementConfig", "FullManagementConfig", "OneofConfig", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_StandardManagementConfig_descriptor, + new java.lang.String[] { + "Network", + "Subnet", + "MasterIpv4CidrBlock", + "ClusterCidrBlock", + "ServicesCidrBlock", + "ClusterNamedRange", + "ServicesNamedRange", + "MasterAuthorizedNetworksConfig", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_FullManagementConfig_descriptor, + new java.lang.String[] { + "Network", + "Subnet", + "MasterIpv4CidrBlock", + "ClusterCidrBlock", + "ServicesCidrBlock", + "ClusterNamedRange", + "ServicesNamedRange", + "MasterAuthorizedNetworksConfig", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor, + new java.lang.String[] { + "CidrBlocks", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor = + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor, + new java.lang.String[] { + "DisplayName", "CidrBlock", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_File_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_cloud_telcoautomation_v1alpha1_File_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_File_descriptor, + new java.lang.String[] { + "Path", "Content", "Deleted", "Editable", + }); + internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_telcoautomation_v1alpha1_ResourceStatus_descriptor, + new java.lang.String[] { + "Name", "ResourceNamespace", "Group", "Version", "Kind", "ResourceType", "Status", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequest.java new file mode 100644 index 000000000000..409c550b2086 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequest.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `UpdateBlueprint`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest} + */ +public final class UpdateBlueprintRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) + UpdateBlueprintRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateBlueprintRequest.newBuilder() to construct. + private UpdateBlueprintRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateBlueprintRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateBlueprintRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.Builder.class); + } + + public static final int BLUEPRINT_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1alpha1.Blueprint blueprint_; + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + @java.lang.Override + public boolean hasBlueprint() { + return blueprint_ != null; + } + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintOrBuilder() { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (blueprint_ != null) { + output.writeMessage(1, getBlueprint()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blueprint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlueprint()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.telcoautomation.v1alpha1.UpdateBlueprintRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest other = + (com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) obj; + + if (hasBlueprint() != other.hasBlueprint()) return false; + if (hasBlueprint()) { + if (!getBlueprint().equals(other.getBlueprint())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasBlueprint()) { + hash = (37 * hash) + BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBlueprint().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest 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.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest 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.telcoautomation.v1alpha1.UpdateBlueprintRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest 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.telcoautomation.v1alpha1.UpdateBlueprintRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest 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.telcoautomation.v1alpha1.UpdateBlueprintRequest 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 object for `UpdateBlueprint`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.class, + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.Builder.class); + } + + // Construct using com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateBlueprintRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest build() { + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest result = + new com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blueprint_ = blueprintBuilder_ == null ? blueprint_ : blueprintBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.UpdateBlueprintRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest.getDefaultInstance()) + return this; + if (other.hasBlueprint()) { + mergeBlueprint(other.getBlueprint()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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: + { + input.readMessage(getBlueprintFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.telcoautomation.v1alpha1.Blueprint blueprint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + blueprintBuilder_; + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + public boolean hasBlueprint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint() { + if (blueprintBuilder_ == null) { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } else { + return blueprintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueprint_ = value; + } else { + blueprintBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBlueprint( + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder builderForValue) { + if (blueprintBuilder_ == null) { + blueprint_ = builderForValue.build(); + } else { + blueprintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBlueprint(com.google.cloud.telcoautomation.v1alpha1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && blueprint_ != null + && blueprint_ + != com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance()) { + getBlueprintBuilder().mergeFrom(value); + } else { + blueprint_ = value; + } + } else { + blueprintBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBlueprint() { + bitField0_ = (bitField0_ & ~0x00000001); + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder getBlueprintBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlueprintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintOrBuilder() { + if (blueprintBuilder_ != null) { + return blueprintBuilder_.getMessageOrBuilder(); + } else { + return blueprint_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Blueprint.getDefaultInstance() + : blueprint_; + } + } + /** + * + * + *
+     * Required. The `blueprint` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder> + getBlueprintFieldBuilder() { + if (blueprintBuilder_ == null) { + blueprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Blueprint, + com.google.cloud.telcoautomation.v1alpha1.Blueprint.Builder, + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder>( + getBlueprint(), getParentForChildren(), isClean()); + blueprint_ = null; + } + return blueprintBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `blueprint` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBlueprintRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.UpdateBlueprintRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequestOrBuilder.java new file mode 100644 index 000000000000..720f308d62e1 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateBlueprintRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface UpdateBlueprintRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the blueprint field is set. + */ + boolean hasBlueprint(); + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The blueprint. + */ + com.google.cloud.telcoautomation.v1alpha1.Blueprint getBlueprint(); + /** + * + * + *
+   * Required. The `blueprint` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Blueprint blueprint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.BlueprintOrBuilder getBlueprintOrBuilder(); + + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `blueprint` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequest.java new file mode 100644 index 000000000000..975222afd566 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequest.java @@ -0,0 +1,1025 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `UpdateDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest} + */ +public final class UpdateDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) + UpdateDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDeploymentRequest.newBuilder() to construct. + private UpdateDeploymentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDeploymentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.Builder.class); + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1alpha1.Deployment deployment_; + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return deployment_ != null; + } + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (deployment_ != null) { + output.writeMessage(1, getDeployment()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deployment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.telcoautomation.v1alpha1.UpdateDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) obj; + + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest 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.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest 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.telcoautomation.v1alpha1.UpdateDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest + 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.telcoautomation.v1alpha1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest 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.telcoautomation.v1alpha1.UpdateDeploymentRequest 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 object for `UpdateDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.UpdateDeploymentRequest) { + return mergeFrom((com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest.getDefaultInstance()) + return this; + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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: + { + input.readMessage(getDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.telcoautomation.v1alpha1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + deploymentBuilder_; + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment( + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.telcoautomation.v1alpha1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && deployment_ != null + && deployment_ + != com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDeploymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.Deployment.getDefaultInstance() + : deployment_; + } + } + /** + * + * + *
+     * Required. The `deployment` to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder> + getDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.Deployment, + com.google.cloud.telcoautomation.v1alpha1.Deployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Update mask is used to specify the fields to be overwritten in
+     * the `deployment` resource by the update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.UpdateDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..08a257fa359f --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateDeploymentRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface UpdateDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.telcoautomation.v1alpha1.Deployment getDeployment(); + /** + * + * + *
+   * Required. The `deployment` to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.DeploymentOrBuilder getDeploymentOrBuilder(); + + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Update mask is used to specify the fields to be overwritten in
+   * the `deployment` resource by the update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequest.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequest.java new file mode 100644 index 000000000000..20716c375fac --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequest.java @@ -0,0 +1,1045 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +/** + * + * + *
+ * Request object for `UpdateHydratedDeployment`.
+ * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest} + */ +public final class UpdateHydratedDeploymentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) + UpdateHydratedDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateHydratedDeploymentRequest.newBuilder() to construct. + private UpdateHydratedDeploymentRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateHydratedDeploymentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateHydratedDeploymentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest.Builder + .class); + } + + public static final int HYDRATED_DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydratedDeployment_; + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hydratedDeployment field is set. + */ + @java.lang.Override + public boolean hasHydratedDeployment() { + return hydratedDeployment_ != null; + } + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hydratedDeployment. + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployment() { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder + getHydratedDeploymentOrBuilder() { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (hydratedDeployment_ != null) { + output.writeMessage(1, getHydratedDeployment()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hydratedDeployment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHydratedDeployment()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest other = + (com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) obj; + + if (hasHydratedDeployment() != other.hasHydratedDeployment()) return false; + if (hasHydratedDeployment()) { + if (!getHydratedDeployment().equals(other.getHydratedDeployment())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasHydratedDeployment()) { + hash = (37 * hash) + HYDRATED_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getHydratedDeployment().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest 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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest 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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + 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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest 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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest 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 object for `UpdateHydratedDeployment`.
+   * 
+ * + * Protobuf type {@code google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest.class, + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hydratedDeployment_ = null; + if (hydratedDeploymentBuilder_ != null) { + hydratedDeploymentBuilder_.dispose(); + hydratedDeploymentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.telcoautomation.v1alpha1.TelcoautomationProto + .internal_static_google_cloud_telcoautomation_v1alpha1_UpdateHydratedDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + getDefaultInstanceForType() { + return com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest build() { + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + buildPartial() { + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest result = + new com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hydratedDeployment_ = + hydratedDeploymentBuilder_ == null + ? hydratedDeployment_ + : hydratedDeploymentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) { + return mergeFrom( + (com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest other) { + if (other + == com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + .getDefaultInstance()) return this; + if (other.hasHydratedDeployment()) { + mergeHydratedDeployment(other.getHydratedDeployment()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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: + { + input.readMessage( + getHydratedDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydratedDeployment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder> + hydratedDeploymentBuilder_; + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hydratedDeployment field is set. + */ + public boolean hasHydratedDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hydratedDeployment. + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployment() { + if (hydratedDeploymentBuilder_ == null) { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } else { + return hydratedDeploymentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment value) { + if (hydratedDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hydratedDeployment_ = value; + } else { + hydratedDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder builderForValue) { + if (hydratedDeploymentBuilder_ == null) { + hydratedDeployment_ = builderForValue.build(); + } else { + hydratedDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHydratedDeployment( + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment value) { + if (hydratedDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && hydratedDeployment_ != null + && hydratedDeployment_ + != com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment + .getDefaultInstance()) { + getHydratedDeploymentBuilder().mergeFrom(value); + } else { + hydratedDeployment_ = value; + } + } else { + hydratedDeploymentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHydratedDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + hydratedDeployment_ = null; + if (hydratedDeploymentBuilder_ != null) { + hydratedDeploymentBuilder_.dispose(); + hydratedDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder + getHydratedDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getHydratedDeploymentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder + getHydratedDeploymentOrBuilder() { + if (hydratedDeploymentBuilder_ != null) { + return hydratedDeploymentBuilder_.getMessageOrBuilder(); + } else { + return hydratedDeployment_ == null + ? com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.getDefaultInstance() + : hydratedDeployment_; + } + } + /** + * + * + *
+     * Required. The hydrated deployment to update.
+     * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder> + getHydratedDeploymentFieldBuilder() { + if (hydratedDeploymentBuilder_ == null) { + hydratedDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment.Builder, + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder>( + getHydratedDeployment(), getParentForChildren(), isClean()); + hydratedDeployment_ = null; + } + return hydratedDeploymentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to update. Update mask supports a special
+     * value `*` which fully replaces (equivalent to PUT) the resource provided.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) + private static final com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest(); + } + + public static com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHydratedDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequestOrBuilder.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..97f434f203f0 --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/UpdateHydratedDeploymentRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/telcoautomation/v1alpha1/telcoautomation.proto + +package com.google.cloud.telcoautomation.v1alpha1; + +public interface UpdateHydratedDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hydratedDeployment field is set. + */ + boolean hasHydratedDeployment(); + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hydratedDeployment. + */ + com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment getHydratedDeployment(); + /** + * + * + *
+   * Required. The hydrated deployment to update.
+   * 
+ * + * + * .google.cloud.telcoautomation.v1alpha1.HydratedDeployment hydrated_deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentOrBuilder + getHydratedDeploymentOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update. Update mask supports a special
+   * value `*` which fully replaces (equivalent to PUT) the resource provided.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/proto/google/cloud/telcoautomation/v1alpha1/telcoautomation.proto b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/proto/google/cloud/telcoautomation/v1alpha1/telcoautomation.proto new file mode 100644 index 000000000000..74cfb33b80ca --- /dev/null +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/proto/google/cloud/telcoautomation/v1alpha1/telcoautomation.proto @@ -0,0 +1,1863 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.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.telcoautomation.v1alpha1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/telcoautomation/apiv1alpha1/telcoautomationpb;telcoautomationpb"; +option java_multiple_files = true; +option java_outer_classname = "TelcoautomationProto"; +option java_package = "com.google.cloud.telcoautomation.v1alpha1"; + +// TelcoAutomation Service manages the control plane cluster a.k.a. +// Orchestration Cluster (GKE cluster with config controller) of TNA. It also +// exposes blueprint APIs which manages the lifecycle of blueprints that control +// the infrastructure setup (e.g GDCE clusters) and deployment of network +// functions. +service TelcoAutomation { + option (google.api.default_host) = "telcoautomation.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists OrchestrationClusters in a given project and location. + rpc ListOrchestrationClusters(ListOrchestrationClustersRequest) + returns (ListOrchestrationClustersResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*}/orchestrationClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single OrchestrationCluster. + rpc GetOrchestrationCluster(GetOrchestrationClusterRequest) + returns (OrchestrationCluster) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new OrchestrationCluster in a given project and location. + rpc CreateOrchestrationCluster(CreateOrchestrationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*}/orchestrationClusters" + body: "orchestration_cluster" + }; + option (google.api.method_signature) = + "parent,orchestration_cluster,orchestration_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "OrchestrationCluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single OrchestrationCluster. + rpc DeleteOrchestrationCluster(DeleteOrchestrationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists EdgeSlms in a given project and location. + rpc ListEdgeSlms(ListEdgeSlmsRequest) returns (ListEdgeSlmsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*}/edgeSlms" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single EdgeSlm. + rpc GetEdgeSlm(GetEdgeSlmRequest) returns (EdgeSlm) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/edgeSlms/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new EdgeSlm in a given project and location. + rpc CreateEdgeSlm(CreateEdgeSlmRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*}/edgeSlms" + body: "edge_slm" + }; + option (google.api.method_signature) = "parent,edge_slm,edge_slm_id"; + option (google.longrunning.operation_info) = { + response_type: "EdgeSlm" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single EdgeSlm. + rpc DeleteEdgeSlm(DeleteEdgeSlmRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/edgeSlms/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Creates a blueprint. + rpc CreateBlueprint(CreateBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints" + body: "blueprint" + }; + option (google.api.method_signature) = "parent,blueprint,blueprint_id"; + } + + // Updates a blueprint. + rpc UpdateBlueprint(UpdateBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + patch: "/v1alpha1/{blueprint.name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}" + body: "blueprint" + }; + option (google.api.method_signature) = "blueprint,update_mask"; + } + + // Returns the requested blueprint. + rpc GetBlueprint(GetBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a blueprint and all its revisions. + rpc DeleteBlueprint(DeleteBlueprintRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes the specified revision of the blueprint. + rpc DeleteBlueprintRevision(DeleteBlueprintRevisionRequest) + returns (Blueprint) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:deleteRevision" + }; + } + + // List all blueprints. + rpc ListBlueprints(ListBlueprintsRequest) returns (ListBlueprintsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints" + }; + option (google.api.method_signature) = "parent"; + } + + // Approves a blueprint and commits a new revision. + rpc ApproveBlueprint(ApproveBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:approve" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Proposes a blueprint for approval of changes. + rpc ProposeBlueprint(ProposeBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:propose" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Rejects a blueprint revision proposal and flips it back to Draft state. + rpc RejectBlueprint(RejectBlueprintRequest) returns (Blueprint) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:reject" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // List blueprint revisions of a given blueprint. + rpc ListBlueprintRevisions(ListBlueprintRevisionsRequest) + returns (ListBlueprintRevisionsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:listRevisions" + }; + option (google.api.method_signature) = "name"; + } + + // Searches across blueprint revisions. + rpc SearchBlueprintRevisions(SearchBlueprintRevisionsRequest) + returns (SearchBlueprintRevisionsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/blueprints:searchRevisions" + }; + option (google.api.method_signature) = "parent,query"; + } + + // Searches across deployment revisions. + rpc SearchDeploymentRevisions(SearchDeploymentRevisionsRequest) + returns (SearchDeploymentRevisionsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments:searchRevisions" + }; + option (google.api.method_signature) = "parent,query"; + } + + // Discards the changes in a blueprint and reverts the blueprint to the last + // approved blueprint revision. No changes take place if a blueprint does not + // have revisions. + rpc DiscardBlueprintChanges(DiscardBlueprintChangesRequest) + returns (DiscardBlueprintChangesResponse) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/blueprints/*}:discard" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the blueprints in TNA's public catalog. Default page size = 20, + // Max Page Size = 100. + rpc ListPublicBlueprints(ListPublicBlueprintsRequest) + returns (ListPublicBlueprintsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*}/publicBlueprints" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the requested public blueprint. + rpc GetPublicBlueprint(GetPublicBlueprintRequest) returns (PublicBlueprint) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/publicBlueprints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment. + rpc CreateDeployment(CreateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments" + body: "deployment" + }; + option (google.api.method_signature) = "parent,deployment,deployment_id"; + } + + // Updates a deployment. + rpc UpdateDeployment(UpdateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + patch: "/v1alpha1/{deployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*}" + body: "deployment" + }; + option (google.api.method_signature) = "deployment,update_mask"; + } + + // Returns the requested deployment. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a deployment and all its revisions. + rpc DeleteDeployment(DeleteDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Removes the deployment by marking it as DELETING. Post which deployment and + // it's revisions gets deleted. + rpc RemoveDeployment(RemoveDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:remove" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes the specified revision of the deployment. + rpc DeleteDeploymentRevision(DeleteDeploymentRevisionRequest) + returns (Deployment) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:deleteRevision" + }; + } + + // List all deployments. + rpc ListDeployments(ListDeploymentsRequest) + returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // List deployment revisions of a given deployment. + rpc ListDeploymentRevisions(ListDeploymentRevisionsRequest) + returns (ListDeploymentRevisionsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:listRevisions" + }; + option (google.api.method_signature) = "name"; + } + + // Discards the changes in a deployment and reverts the deployment to the last + // approved deployment revision. No changes take place if a deployment does + // not have revisions. + rpc DiscardDeploymentChanges(DiscardDeploymentChangesRequest) + returns (DiscardDeploymentChangesResponse) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:discard" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Applies the deployment's YAML files to the parent orchestration cluster. + rpc ApplyDeployment(ApplyDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:apply" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the requested deployment status. + rpc ComputeDeploymentStatus(ComputeDeploymentStatusRequest) + returns (ComputeDeploymentStatusResponse) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:computeDeploymentStatus" + }; + option (google.api.method_signature) = "name"; + } + + // Rollback the active deployment to the given past approved deployment + // revision. + rpc RollbackDeployment(RollbackDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*}:rollback" + body: "*" + }; + option (google.api.method_signature) = "name,revision_id"; + } + + // Returns the requested hydrated deployment. + rpc GetHydratedDeployment(GetHydratedDeploymentRequest) + returns (HydratedDeployment) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List all hydrated deployments present under a deployment. + rpc ListHydratedDeployments(ListHydratedDeploymentsRequest) + returns (ListHydratedDeploymentsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*/orchestrationClusters/*/deployments/*}/hydratedDeployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a hydrated deployment. + rpc UpdateHydratedDeployment(UpdateHydratedDeploymentRequest) + returns (HydratedDeployment) { + option (google.api.http) = { + patch: "/v1alpha1/{hydrated_deployment.name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}" + body: "hydrated_deployment" + }; + option (google.api.method_signature) = "hydrated_deployment,update_mask"; + } + + // Applies a hydrated deployment to a workload cluster. + rpc ApplyHydratedDeployment(ApplyHydratedDeploymentRequest) + returns (HydratedDeployment) { + option (google.api.http) = { + post: "/v1alpha1/{name=projects/*/locations/*/orchestrationClusters/*/deployments/*/hydratedDeployments/*}:apply" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// BlueprintView defines the type of view of the blueprint. +enum BlueprintView { + // Unspecified enum value. + BLUEPRINT_VIEW_UNSPECIFIED = 0; + + // View which only contains metadata. + BLUEPRINT_VIEW_BASIC = 1; + + // View which contains metadata and files it encapsulates. + BLUEPRINT_VIEW_FULL = 2; +} + +// DeploymentView defines the type of view of the deployment. +enum DeploymentView { + // Unspecified enum value. + DEPLOYMENT_VIEW_UNSPECIFIED = 0; + + // View which only contains metadata. + DEPLOYMENT_VIEW_BASIC = 1; + + // View which contains metadata and files it encapsulates. + DEPLOYMENT_VIEW_FULL = 2; +} + +// Represent type of CR. +enum ResourceType { + // Unspecified resource type. + RESOURCE_TYPE_UNSPECIFIED = 0; + + // User specified NF Deploy CR. + NF_DEPLOY_CUSTOM_RESOURCE = 1; + + // CRs that are part of a blueprint. + BLUEPRINT_CUSTOM_RESOURCE = 2; +} + +// Status of an entity (resource, deployment). +enum Status { + // Unknown state. + STATUS_UNSPECIFIED = 0; + + // Under progress. + STATUS_IN_PROGRESS = 1; + + // Running and ready to serve traffic. + STATUS_ACTIVE = 2; + + // Failed or stalled. + STATUS_FAILED = 3; + + // NFDeploy specific status. + STATUS_PEERING = 10; +} + +// Orchestration cluster represents a GKE cluster with config controller and +// TNA specific components installed on it. +message OrchestrationCluster { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}" + }; + + // Possible states that the Orchestration Cluster can be in. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // OrchestrationCluster is being created. + CREATING = 1; + + // OrchestrationCluster has been created and is ready for use. + ACTIVE = 2; + + // OrchestrationCluster is being deleted. + DELETING = 3; + + // OrchestrationCluster encountered an error and is in an indeterministic + // state. User can still initiate a delete operation on this state. + FAILED = 4; + } + + // Name of the orchestration cluster. + string name = 1; + + // Management configuration of the underlying GKE cluster. + ManagementConfig management_config = 5; + + // Output only. [Output only] Create time stamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels as key value pairs. + map labels = 4; + + // Output only. Provides the TNA version installed on the cluster. + string tna_version = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the Orchestration Cluster. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// EdgeSlm represents an SLM instance which manages the lifecycle of edge +// components installed on Workload clusters managed by an Orchestration +// Cluster. +message EdgeSlm { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/EdgeSlm" + pattern: "projects/{project}/locations/{location}/edgeSlms/{edge_slm}" + plural: "edgeSlms" + singular: "edgeSlm" + }; + + // Possible states of the resource. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // EdgeSlm is being created. + CREATING = 1; + + // EdgeSlm has been created and is ready for use. + ACTIVE = 2; + + // EdgeSlm is being deleted. + DELETING = 3; + + // EdgeSlm encountered an error and is in an indeterministic + // state. User can still initiate a delete operation on this state. + FAILED = 4; + } + + // Workload clusters supported by TNA. New values will be added to the enum + // list as TNA adds supports for new workload clusters in future. + enum WorkloadClusterType { + // Unspecified workload cluster. + WORKLOAD_CLUSTER_TYPE_UNSPECIFIED = 0; + + // Workload cluster is a GDCE cluster. + GDCE = 1; + + // Workload cluster is a GKE cluster. + GKE = 2; + } + + // Name of the EdgeSlm resource. + string name = 1; + + // Immutable. Reference to the orchestration cluster on which templates for + // this resources will be applied. This should be of format + // projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}. + string orchestration_cluster = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Output only. [Output only] Create time stamp. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs. The key and value should contain + // characters which are UTF-8 compliant and less than 50 characters. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Provides the active TNA version for this resource. + string tna_version = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the EdgeSlm resource. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Type of workload cluster for which an EdgeSLM resource is + // created. + WorkloadClusterType workload_cluster_type = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A Blueprint contains a collection of kubernetes resources in the form of +// YAML files. The file contents of a blueprint are collectively known as +// package. A blueprint can be +// a) imported from TNA's public catalog +// b) modified as per a user's need +// c) proposed and approved. +// On approval, a revision of blueprint is created which can be used to +// create a deployment on Orchestration Cluster. +message Blueprint { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/Blueprint" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/blueprints/{blueprint}" + plural: "blueprints" + singular: "blueprint" + }; + + // Approval state indicates the state of a Blueprint in its approval + // lifecycle. + enum ApprovalState { + // Unspecified state. + APPROVAL_STATE_UNSPECIFIED = 0; + + // A blueprint starts in DRAFT state once it is created. All edits are made + // to the blueprint in DRAFT state. + DRAFT = 1; + + // When the edits are ready for review, blueprint can be proposed and moves + // to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state. + PROPOSED = 2; + + // When a proposed blueprint is approved, it moves to APPROVED state. A new + // revision is committed. The latest committed revision can be used to + // create a deployment on Orchestration Cluster. Edits to an APPROVED + // blueprint changes its state back to DRAFT. The last committed revision of + // a blueprint represents its latest APPROVED state. + APPROVED = 3; + } + + // The name of the blueprint. If unspecified, the name will be autogenerated + // from server side. Name of the blueprint must not contain `@` character. + string name = 1; + + // Output only. Immutable. The revision ID of the blueprint. + // A new revision is committed whenever a blueprint is approved. + string revision_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. Immutable. The public blueprint ID from which this blueprint was + // created. + string source_blueprint = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp revision_create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED) + ApprovalState approval_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Human readable name of a Blueprint. + string display_name = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Name of the repository where the blueprint files are stored. + string repository = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Files present in a blueprint. + // When invoking UpdateBlueprint API, only the modified files should be + // included in this. Files that are not included in the update of a blueprint + // will not be changed. + repeated File files = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels are key-value attributes that can be set on a blueprint + // resource by the user. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Blueprint creation time. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the blueprint was updated. + google.protobuf.Timestamp update_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source provider is the author of a public blueprint, from + // which this blueprint is created. + string source_provider = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Blueprint contains a collection of kubernetes resources in the form of +// YAML files. The file contents of a blueprint are collectively known as +// package. +// Public blueprint is a TNA provided blueprint that in present in TNA's public +// catalog. A user can copy the public blueprint to their private catalog for +// further modifications. +message PublicBlueprint { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/PublicBlueprint" + pattern: "projects/{project}/locations/{location}/publicBlueprints/{public_lueprint}" + plural: "publicBlueprints" + singular: "publicBlueprint" + }; + + // DeploymentLevel of a blueprint signifies where the blueprint will be + // applied. + enum DeploymentLevel { + // Default unspecified deployment level. + DEPLOYMENT_LEVEL_UNSPECIFIED = 0; + + // Blueprints at HYDRATION level cannot be used to create a Deployment + // (A user cannot manually initate deployment of these blueprints on + // orchestration or workload cluster). + // These blueprints stay in a user's private catalog and are configured and + // deployed by TNA automation. + HYDRATION = 1; + + // Blueprints at DEPLOYMENT level can be + // a) Modified in private catalog. + // b) Used to create a deployment on orchestration cluster by the user, once + // approved. + DEPLOYMENT = 2; + } + + // Name of the public blueprint. + string name = 1; + + // The display name of the public blueprint. + string display_name = 2; + + // The description of the public blueprint. + string description = 3; + + // DeploymentLevel of a blueprint signifies where the blueprint will be + // applied. e.g. [HYDRATION, DEPLOYMENT] + DeploymentLevel deployment_level = 4; + + // Source provider is the author of a public blueprint. e.g. Google, vendors + string source_provider = 5; +} + +// Deployment contains a collection of YAML files (This collection is also known +// as package) that can to applied on an orchestration cluster (GKE cluster with +// TNA addons). +message Deployment { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/Deployment" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}" + plural: "deployments" + singular: "deployment" + }; + + // State defines which state the current deployment is in. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // A deployment starts in DRAFT state. All edits are made in DRAFT state. A + // deployment opened for editing after applying will be in draft state, + // while its prevision revision will be its current applied version. + DRAFT = 1; + + // This state means that the contents (YAML files containing kubernetes + // resources) of the deployment have been applied to an Orchestration + // Cluster. A revision is created when a deployment is applied. This + // revision will represent the latest view of what is applied on the cluster + // until the deployment is modified and applied again, which will create a + // new revision. + APPLIED = 2; + } + + // The name of the deployment. + string name = 1; + + // Output only. Immutable. The revision ID of the deployment. + // A new revision is committed whenever a change in deployment is applied. + string revision_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. Immutable. The blueprint revision from which this deployment was + // created. + string source_blueprint_revision = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp revision_create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the deployment (DRAFT, APPLIED). + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Human readable name of a Deployment. + string display_name = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Name of the repository where the deployment package files are + // stored. + string repository = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Files present in a deployment. + // When invoking UpdateDeployment API, only the modified files should be + // included in this. Files that are not included in the update of a deployment + // will not be changed. + repeated File files = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels are key-value attributes that can be set on a deployment + // resource by the user. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Deployment creation time. + google.protobuf.Timestamp create_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the deployment was updated. + google.protobuf.Timestamp update_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source provider is the author of a public blueprint, from + // which this deployment is created. + string source_provider = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A collection of kubernetes yaml files which are deployed on a Workload +// Cluster. Hydrated Deployments are created by TNA intent based automation. +message HydratedDeployment { + option (google.api.resource) = { + type: "telcoautomation.googleapis.com/HydratedDeployment" + pattern: "projects/{project}/locations/{location}/orchestrationClusters/{orchestration_cluster}/deployments/{deployment}/hydratedDeployments/{hydrated_deployment}" + plural: "hydratedDeployments" + singular: "hydratedDeployment" + }; + + // State defines which state the current hydrated deployment is in. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // A hydrated deployment starts in DRAFT state. All edits are made in DRAFT + // state. + DRAFT = 1; + + // When the edit is applied, the hydrated deployment moves to APPLIED + // state. No changes can be made once a hydrated deployment is applied. + APPLIED = 2; + } + + // Output only. The name of the hydrated deployment. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the hydrated deployment (DRAFT, APPLIED). + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. File contents of a hydrated deployment. + // When invoking UpdateHydratedBlueprint API, only the modified files should + // be included in this. Files that are not included in the update of a + // hydrated deployment will not be changed. + repeated File files = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. WorkloadCluster identifies which workload cluster will the + // hydrated deployment will be deployed on. + string workload_cluster = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting list of OrchestrationClusters. +message ListOrchestrationClustersRequest { + // Required. Parent value for ListOrchestrationClustersRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results. + string filter = 4; + + // Hint for how to order the results. + string order_by = 5; +} + +// Message for response to listing OrchestrationClusters. +message ListOrchestrationClustersResponse { + // The list of OrchestrationCluster + repeated OrchestrationCluster orchestration_clusters = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a OrchestrationCluster. +message GetOrchestrationClusterRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; +} + +// Message for creating a OrchestrationCluster. +message CreateOrchestrationClusterRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Required. Id of the requesting object + // If auto-generating Id server-side, remove this field and + // orchestration_cluster_id from the method_signature of Create RPC + string orchestration_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + OrchestrationCluster orchestration_cluster = 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 + // the 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]; +} + +// Message for deleting a OrchestrationCluster. +message DeleteOrchestrationClusterRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/OrchestrationCluster" + } + ]; + + // Optional. An optional 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 + // the 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]; +} + +// Message for requesting list of EdgeSlms +message ListEdgeSlmsRequest { + // Required. Parent value for ListEdgeSlmsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; + + // Requested page size. Server may return fewer items than requested. + // If unspecified, server will pick an appropriate default. + int32 page_size = 2; + + // A token identifying a page of results the server should return. + string page_token = 3; + + // Filtering results + string filter = 4; + + // Hint for how to order the results + string order_by = 5; +} + +// Message for response to listing EdgeSlms. +message ListEdgeSlmsResponse { + // The list of EdgeSlm + repeated EdgeSlm edge_slms = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Message for getting a EdgeSlm. +message GetEdgeSlmRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; +} + +// Message for creating a EdgeSlm. +message CreateEdgeSlmRequest { + // Required. Value for parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; + + // Required. Id of the requesting object + // If auto-generating Id server-side, remove this field and + // edge_slm_id from the method_signature of Create RPC + string edge_slm_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + EdgeSlm edge_slm = 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 + // the 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]; +} + +// Message for deleting a EdgeSlm. +message DeleteEdgeSlmRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/EdgeSlm" + } + ]; + + // Optional. An optional 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 + // the 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]; +} + +// Request object for `CreateBlueprint`. +message CreateBlueprintRequest { + // Required. The name of parent resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Optional. The name of the blueprint. + string blueprint_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `Blueprint` to create. + Blueprint blueprint = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdateBlueprint`. +message UpdateBlueprintRequest { + // Required. The `blueprint` to update. + Blueprint blueprint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Update mask is used to specify the fields to be overwritten in + // the `blueprint` resource by the update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `GetBlueprint`. +message GetBlueprintRequest { + // Required. The name of the blueprint. + // Case 1: If the name provided in the request is + // {blueprint_id}@{revision_id}, then the revision with revision_id will be + // returned. Case 2: If the name provided in the request is {blueprint}, then + // the current state of the blueprint is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Optional. Defines the type of view of the blueprint. + // When field is not present BLUEPRINT_VIEW_BASIC is considered as default. + BlueprintView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request object for `DeleteBlueprint`. +message DeleteBlueprintRequest { + // Required. The name of blueprint to delete. + // Blueprint name should be in the format {blueprint_id}, if + // {blueprint_id}@{revision_id} is passed then the API throws invalid + // argument. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `DeleteBlueprintRevision`. +message DeleteBlueprintRevisionRequest { + // Required. The name of the blueprint revision in the form + // {blueprint_id}@{revision_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `ListBlueprints`. +message ListBlueprintsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Optional. Filtering only supports equality on blueprint state. + // It should be in the form: "state = DRAFT". `OR` operator can be used to + // get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED". + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of blueprints to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListBlueprints call. + // It can be provided to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListBlueprints`. +message ListBlueprintsResponse { + // The list of requested blueprints. + repeated Blueprint blueprints = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `ApproveBlueprint`. +message ApproveBlueprintRequest { + // Required. The name of the blueprint to approve. The blueprint must be in + // Proposed state. A new revision is committed on approval. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `ProposeBlueprint`. +message ProposeBlueprintRequest { + // Required. The name of the blueprint being proposed. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `RejectBlueprint`. +message RejectBlueprintRequest { + // Required. The name of the blueprint being rejected. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Request object for `ListBlueprintRevisions`. +message ListBlueprintRevisionsRequest { + // Required. The name of the blueprint to list revisions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // The maximum number of revisions to return per page. + int32 page_size = 2; + + // The page token, received from a previous ListBlueprintRevisions call + // It can be provided to retrieve the subsequent page. + string page_token = 3; +} + +// Response object for `ListBlueprintRevisions`. +message ListBlueprintRevisionsResponse { + // The revisions of the blueprint. + repeated Blueprint blueprints = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `SearchBlueprintRevisions`. +message SearchBlueprintRevisionsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Required. Supported queries: + // 1. "" : Lists all revisions across all blueprints. + // 2. "latest=true" : Lists latest revisions across all blueprints. + // 3. "name=" : Lists all revisions of blueprint with name + // . + // 4. "name= latest=true": Lists latest revision of blueprint with name + // + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of blueprints revisions to return per page. + // max page size = 100, default page size = 20. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous search call. + // It can be provided to retrieve the subsequent page. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `SearchBlueprintRevisions`. +message SearchBlueprintRevisionsResponse { + // The list of requested blueprint revisions. + repeated Blueprint blueprints = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `DiscardBlueprintChanges`. +message DiscardBlueprintChangesRequest { + // Required. The name of the blueprint of which changes are being discarded. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Blueprint" + } + ]; +} + +// Response object for `DiscardBlueprintChanges`. +message DiscardBlueprintChangesResponse {} + +// Request object for `ListPublicBlueprints`. +message ListPublicBlueprintsRequest { + // Required. Parent value of public blueprint. + // Format should be - + // "projects/{project_id}/locations/{location_name}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/PublicBlueprint" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListPublicBlueprints`. +message ListPublicBlueprintsResponse { + // The list of public blueprints to return. + repeated PublicBlueprint public_blueprints = 1; + + // Output only. A token identifying a page of results the server should + // return. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request object for `GetPublicBlueprint`. +message GetPublicBlueprintRequest { + // Required. The name of the public blueprint. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/PublicBlueprint" + } + ]; +} + +// Request object for `CreateDeployment`. +message CreateDeploymentRequest { + // Required. The name of parent resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. The name of the deployment. + string deployment_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `Deployment` to create. + Deployment deployment = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdateDeployment`. +message UpdateDeploymentRequest { + // Required. The `deployment` to update. + Deployment deployment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Update mask is used to specify the fields to be overwritten in + // the `deployment` resource by the update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `GetDeployment`. +message GetDeploymentRequest { + // Required. The name of the deployment. + // Case 1: If the name provided in the request is + // {deployment_id}@{revision_id}, then the revision with revision_id will be + // returned. + // Case 2: If the name provided in the request is {deployment}, then + // the current state of the deployment is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. Defines the type of view of the deployment. + // When field is not present VIEW_BASIC is considered as default. + DeploymentView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request object for `DeleteDeployment`. +message DeleteDeploymentRequest { + // Required. The name of deployment to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Request object for `RemoveDeployment`. +message RemoveDeploymentRequest { + // Required. The name of deployment to initiate delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Request object for `DeleteDeploymentRevision`. +message DeleteDeploymentRevisionRequest { + // Required. The name of the deployment revision in the form + // {deployment_id}@{revision_id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Request object for `ListDeployments`. +message ListDeploymentsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. Filtering only supports equality on deployment state. + // It should be in the form: "state = DRAFT". `OR` operator can be used to + // get response for multiple states. e.g. "state = DRAFT OR state = APPLIED". + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of deployments to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListDeployments call. + // It can be provided to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListDeployments`. +message ListDeploymentsResponse { + // The list of requested deployments. + repeated Deployment deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request for listing all revisions of a deployment. +message ListDeploymentRevisionsRequest { + // Required. The name of the deployment to list revisions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Optional. The maximum number of revisions to return per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListDeploymentRevisions + // call Provide this to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of deployment revisions for a given deployment. +message ListDeploymentRevisionsResponse { + // The revisions of the deployment. + repeated Deployment deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `SearchDeploymentRevisions`. +message SearchDeploymentRevisionsRequest { + // Required. The name of parent orchestration cluster resource. + // Format should be - + // "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/Blueprint" + } + ]; + + // Required. Supported queries: + // 1. "" : Lists all revisions across all deployments. + // 2. "latest=true" : Lists latest revisions across all + // deployments. + // 3. "name=" : Lists all revisions of deployment with name + // . + // 4. "name= latest=true": Lists latest revision of deployment with name + // + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of deployment revisions to return per page. + // max page size = 100, default page size = 20. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous search call. + // It can be provided to retrieve the subsequent page. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `SearchDeploymentRevisions`. +message SearchDeploymentRevisionsResponse { + // The list of requested deployment revisions. + repeated Deployment deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `DiscardDeploymentChanges`. +message DiscardDeploymentChangesRequest { + // Required. The name of the deployment of which changes are being discarded. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Response object for `DiscardDeploymentChanges`. +message DiscardDeploymentChangesResponse {} + +// Request object for `ApplyDeployment`. The resources in given deployment +// gets applied to Orchestration Cluster. A new revision is created when a +// deployment is applied. +message ApplyDeploymentRequest { + // Required. The name of the deployment to apply to orchestration cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Request object for `ComputeDeploymentStatus`. +message ComputeDeploymentStatusRequest { + // Required. The name of the deployment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; +} + +// Response object for `ComputeDeploymentStatus`. +message ComputeDeploymentStatusResponse { + // The name of the deployment. + string name = 1; + + // Output only. Aggregated status of a deployment. + Status status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource level status details in deployments. + repeated ResourceStatus resource_statuses = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request object for `RollbackDeployment`. +message RollbackDeploymentRequest { + // Required. Name of the deployment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/Deployment" + } + ]; + + // Required. The revision id of deployment to roll back to. + string revision_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request object for `GetHydratedDeployment`. +message GetHydratedDeploymentRequest { + // Required. Name of the hydrated deployment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/HydratedDeployment" + } + ]; +} + +// Request object for `ListHydratedDeployments`. +message ListHydratedDeploymentsRequest { + // Required. The deployment managing the hydrated deployments. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "telcoautomation.googleapis.com/HydratedDeployment" + } + ]; + + // Optional. The maximum number of hydrated deployments to return. The service + // may return fewer than this value. If unspecified, at most 50 hydrated + // deployments will be returned. The maximum value is 1000. Values above 1000 + // will be set to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token, received from a previous ListHydratedDeployments + // call. Provide this to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListHydratedDeployments`. +message ListHydratedDeploymentsResponse { + // The list of hydrated deployments. + repeated HydratedDeployment hydrated_deployments = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request object for `UpdateHydratedDeployment`. +message UpdateHydratedDeploymentRequest { + // Required. The hydrated deployment to update. + HydratedDeployment hydrated_deployment = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. Update mask supports a special + // value `*` which fully replaces (equivalent to PUT) the resource provided. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for applying a hydrated deployment. +message ApplyHydratedDeploymentRequest { + // Required. The name of the hydrated deployment to apply. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "telcoautomation.googleapis.com/HydratedDeployment" + } + ]; +} + +// Configuration of the cluster management +message ManagementConfig { + // The configuration can be one of StandardManagementConfig + // and FullManagementConfig + oneof oneof_config { + // Configuration of the standard (GKE) cluster management + StandardManagementConfig standard_management_config = 1; + + // Configuration of the full (Autopilot) cluster management. Full cluster + // management is a preview feature. + FullManagementConfig full_management_config = 2; + } +} + +// Configuration of the standard (GKE) cluster management. +message StandardManagementConfig { + // Optional. Name of the VPC Network to put the GKE cluster and nodes in. The + // VPC will be created if it doesn't exist. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the subnet that the interface will be part of. Network + // key must be specified and the subnet must be a subnetwork of the specified + // network. + string subnet = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The /28 network that the masters will use. + string master_ipv4_cidr_block = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster pod IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation + // (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string cluster_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster service IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation (e.g. + // 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string services_cidr_block = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block + // can be used to automatically create a GKE-managed one. + string cluster_named_range = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for service ClusterIPs. Alternatively, + // services_cidr_block can be used to automatically create a GKE-managed one. + string services_named_range = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Master Authorized Network that supports multiple CIDR blocks. + // Allows access to the k8s master from multiple blocks. It cannot be set at + // the same time with the field man_block. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration of the full (Autopilot) cluster management +message FullManagementConfig { + // Optional. Name of the VPC Network to put the GKE cluster and nodes in. The + // VPC will be created if it doesn't exist. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the subnet that the interface will be part of. Network + // key must be specified and the subnet must be a subnetwork of the specified + // network. + string subnet = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The /28 network that the masters will use. + string master_ipv4_cidr_block = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster pod IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation + // (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string cluster_cidr_block = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IP address range for the cluster service IPs. Set to blank to + // have a range chosen with the default size. Set to /netmask (e.g. /14) to + // have a range chosen with a specific netmask. Set to a CIDR notation (e.g. + // 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, + // 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. + string services_cidr_block = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for pod IP addresses. Alternatively, cluster_cidr_block + // can be used to automatically create a GKE-managed one. + string cluster_named_range = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the existing secondary range in the cluster's + // subnetwork to use for service ClusterIPs. Alternatively, + // services_cidr_block can be used to automatically create a GKE-managed one. + string services_named_range = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Master Authorized Network that supports multiple CIDR blocks. + // Allows access to the k8s master from multiple blocks. It cannot be set at + // the same time with the field man_block. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration of the Master Authorized Network that support multiple CIDRs +message MasterAuthorizedNetworksConfig { + // CidrBlock contains an optional name and one CIDR block. + message CidrBlock { + // Optional. display_name is an optional field for users to identify CIDR + // blocks. + string display_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. cidr_block must be specified in CIDR notation when using + // master_authorized_networks_config. Currently, the user could still use + // the deprecated man_block field, so this field is currently optional, but + // will be required in the future. + string cidr_block = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. cidr_blocks define up to 50 external networks that could access + // Kubernetes master through HTTPS. + repeated CidrBlock cidr_blocks = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// File represents a yaml file present in a blueprint's package. +message File { + // Required. Path of the file in package. + // e.g. `gdce/v1/cluster.yaml` + string path = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The contents of a file in string format. + string content = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Signifies whether a file is marked for deletion. + bool deleted = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether changes are allowed to a file. If the field is + // not set, the file cannot be edited. + bool editable = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Status of a deployment resource. +message ResourceStatus { + // Name of the resource. + string name = 1; + + // Namespace of the resource. + string resource_namespace = 2; + + // Group to which the resource belongs to. + string group = 3; + + // Version of the resource. + string version = 4; + + // Kind of the resource. + string kind = 5; + + // Output only. Resource type. + ResourceType resource_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of the resource. + Status status = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..b34e2e4e7127 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.stub.samples; + +// [START telcoautomation_v1_generated_TelcoAutomationStubSettings_GetOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1.stub.TelcoAutomationStubSettings; +import java.time.Duration; + +public class SyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationCluster(); + } + + public static void syncGetOrchestrationCluster() 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 + TelcoAutomationStubSettings.Builder telcoAutomationSettingsBuilder = + TelcoAutomationStubSettings.newBuilder(); + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .setRetrySettings( + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TelcoAutomationStubSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build(); + } +} +// [END telcoautomation_v1_generated_TelcoAutomationStubSettings_GetOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/AsyncApplyDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/AsyncApplyDeployment.java new file mode 100644 index 000000000000..595b8f8b17f4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/AsyncApplyDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncApplyDeployment { + + public static void main(String[] args) throws Exception { + asyncApplyDeployment(); + } + + public static void asyncApplyDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.applyDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeployment.java new file mode 100644 index 000000000000..b09fbe89b58b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_sync] +import com.google.cloud.telcoautomation.v1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApplyDeployment { + + public static void main(String[] args) throws Exception { + syncApplyDeployment(); + } + + public static void syncApplyDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + Deployment response = telcoAutomationClient.applyDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java new file mode 100644 index 000000000000..6e94bc71b9b0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApplyDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncApplyDeploymentDeploymentname(); + } + + public static void syncApplyDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + Deployment response = telcoAutomationClient.applyDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentString.java new file mode 100644 index 000000000000..25cd86519129 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applydeployment/SyncApplyDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_String_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApplyDeploymentString { + + public static void main(String[] args) throws Exception { + syncApplyDeploymentString(); + } + + public static void syncApplyDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + Deployment response = telcoAutomationClient.applyDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java new file mode 100644 index 000000000000..f83f1e8986d2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncApplyHydratedDeployment { + + public static void main(String[] args) throws Exception { + asyncApplyHydratedDeployment(); + } + + public static void asyncApplyHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.applyHydratedDeploymentCallable().futureCall(request); + // Do something. + HydratedDeployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java new file mode 100644 index 000000000000..48eeff2ced58 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_sync] +import com.google.cloud.telcoautomation.v1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApplyHydratedDeployment { + + public static void main(String[] args) throws Exception { + syncApplyHydratedDeployment(); + } + + public static void syncApplyHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java new file mode 100644 index 000000000000..7ba1308c3a1e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_Hydrateddeploymentname_sync] +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApplyHydratedDeploymentHydrateddeploymentname { + + public static void main(String[] args) throws Exception { + syncApplyHydratedDeploymentHydrateddeploymentname(); + } + + public static void syncApplyHydratedDeploymentHydrateddeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_Hydrateddeploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java new file mode 100644 index 000000000000..66cd21e8444e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_String_sync] +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApplyHydratedDeploymentString { + + public static void main(String[] args) throws Exception { + syncApplyHydratedDeploymentString(); + } + + public static void syncApplyHydratedDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString(); + HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java new file mode 100644 index 000000000000..e85bc64cb9fb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncApproveBlueprint { + + public static void main(String[] args) throws Exception { + asyncApproveBlueprint(); + } + + public static void asyncApproveBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.approveBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprint.java new file mode 100644 index 000000000000..90523330a320 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_sync] +import com.google.cloud.telcoautomation.v1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApproveBlueprint { + + public static void main(String[] args) throws Exception { + syncApproveBlueprint(); + } + + public static void syncApproveBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.approveBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java new file mode 100644 index 000000000000..64629ae9c21b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApproveBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncApproveBlueprintBlueprintname(); + } + + public static void syncApproveBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.approveBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java new file mode 100644 index 000000000000..f63d7193d2bc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncApproveBlueprintString { + + public static void main(String[] args) throws Exception { + syncApproveBlueprintString(); + } + + public static void syncApproveBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.approveBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java new file mode 100644 index 000000000000..69ec467fb615 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncComputeDeploymentStatus { + + public static void main(String[] args) throws Exception { + asyncComputeDeploymentStatus(); + } + + public static void asyncComputeDeploymentStatus() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.computeDeploymentStatusCallable().futureCall(request); + // Do something. + ComputeDeploymentStatusResponse response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java new file mode 100644 index 000000000000..c4c8d5231d12 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_sync] +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncComputeDeploymentStatus { + + public static void main(String[] args) throws Exception { + syncComputeDeploymentStatus(); + } + + public static void syncComputeDeploymentStatus() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ComputeDeploymentStatusResponse response = + telcoAutomationClient.computeDeploymentStatus(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java new file mode 100644 index 000000000000..1f92596e58d4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncComputeDeploymentStatusDeploymentname { + + public static void main(String[] args) throws Exception { + syncComputeDeploymentStatusDeploymentname(); + } + + public static void syncComputeDeploymentStatusDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + ComputeDeploymentStatusResponse response = + telcoAutomationClient.computeDeploymentStatus(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java new file mode 100644 index 000000000000..fefac0bd3046 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_String_sync] +import com.google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncComputeDeploymentStatusString { + + public static void main(String[] args) throws Exception { + syncComputeDeploymentStatusString(); + } + + public static void syncComputeDeploymentStatusString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + ComputeDeploymentStatusResponse response = + telcoAutomationClient.computeDeploymentStatus(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..89bc355f6b1a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.TelcoAutomationSettings; +import com.google.cloud.telcoautomation.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 + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_Create_SetCredentialsProvider_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..729efb4fa67d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.TelcoAutomationSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() 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 + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newHttpJsonBuilder().build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetEndpoint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..2e1858079e92 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_Create_SetEndpoint_sync] +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.TelcoAutomationSettings; +import com.google.cloud.telcoautomation.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 + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newBuilder().setEndpoint(myEndpoint).build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_Create_SetEndpoint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/AsyncCreateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/AsyncCreateBlueprint.java new file mode 100644 index 000000000000..6c213209f137 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/AsyncCreateBlueprint.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncCreateBlueprint { + + public static void main(String[] args) throws Exception { + asyncCreateBlueprint(); + } + + public static void asyncCreateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setBlueprintId("blueprintId-1159505138") + .setBlueprint(Blueprint.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.createBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprint.java new file mode 100644 index 000000000000..ae0473625e4b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprint.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateBlueprint { + + public static void main(String[] args) throws Exception { + syncCreateBlueprint(); + } + + public static void syncCreateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setBlueprintId("blueprintId-1159505138") + .setBlueprint(Blueprint.newBuilder().build()) + .build(); + Blueprint response = telcoAutomationClient.createBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java new file mode 100644 index 000000000000..66bd91c71a81 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_OrchestrationclusternameBlueprintString_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateBlueprintOrchestrationclusternameBlueprintString { + + public static void main(String[] args) throws Exception { + syncCreateBlueprintOrchestrationclusternameBlueprintString(); + } + + public static void syncCreateBlueprintOrchestrationclusternameBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_OrchestrationclusternameBlueprintString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java new file mode 100644 index 000000000000..bfbaa77b9bbb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_StringBlueprintString_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateBlueprintStringBlueprintString { + + public static void main(String[] args) throws Exception { + syncCreateBlueprintStringBlueprintString(); + } + + public static void syncCreateBlueprintStringBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_StringBlueprintString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/AsyncCreateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/AsyncCreateDeployment.java new file mode 100644 index 000000000000..94c220b8caaf --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/AsyncCreateDeployment.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncCreateDeployment { + + public static void main(String[] args) throws Exception { + asyncCreateDeployment(); + } + + public static void asyncCreateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setDeploymentId("deploymentId-136894784") + .setDeployment(Deployment.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.createDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeployment.java new file mode 100644 index 000000000000..72aff6513075 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeployment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_sync] +import com.google.cloud.telcoautomation.v1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateDeployment { + + public static void main(String[] args) throws Exception { + syncCreateDeployment(); + } + + public static void syncCreateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setDeploymentId("deploymentId-136894784") + .setDeployment(Deployment.newBuilder().build()) + .build(); + Deployment response = telcoAutomationClient.createDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java new file mode 100644 index 000000000000..2cd418b99e70 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_OrchestrationclusternameDeploymentString_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateDeploymentOrchestrationclusternameDeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentOrchestrationclusternameDeploymentString(); + } + + public static void syncCreateDeploymentOrchestrationclusternameDeploymentString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + Deployment response = + telcoAutomationClient.createDeployment(parent, deployment, deploymentId); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_OrchestrationclusternameDeploymentString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java new file mode 100644 index 000000000000..73dd11078fb3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_StringDeploymentString_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateDeploymentStringDeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentStringDeploymentString(); + } + + public static void syncCreateDeploymentStringDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + Deployment response = + telcoAutomationClient.createDeployment(parent, deployment, deploymentId); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_StringDeploymentString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java new file mode 100644 index 000000000000..8eba6b5bd49e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncCreateEdgeSlm { + + public static void main(String[] args) throws Exception { + asyncCreateEdgeSlm(); + } + + public static void asyncCreateEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEdgeSlmId("edgeSlmId213186994") + .setEdgeSlm(EdgeSlm.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.createEdgeSlmCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java new file mode 100644 index 000000000000..fd0477d42395 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncCreateEdgeSlmLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEdgeSlmLRO(); + } + + public static void asyncCreateEdgeSlmLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEdgeSlmId("edgeSlmId213186994") + .setEdgeSlm(EdgeSlm.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.createEdgeSlmOperationCallable().futureCall(request); + // Do something. + EdgeSlm response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java new file mode 100644 index 000000000000..f29c264e8c26 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_sync] +import com.google.cloud.telcoautomation.v1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateEdgeSlm { + + public static void main(String[] args) throws Exception { + syncCreateEdgeSlm(); + } + + public static void syncCreateEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEdgeSlmId("edgeSlmId213186994") + .setEdgeSlm(EdgeSlm.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(request).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java new file mode 100644 index 000000000000..f239b068b244 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_LocationnameEdgeslmString_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateEdgeSlmLocationnameEdgeslmString { + + public static void main(String[] args) throws Exception { + syncCreateEdgeSlmLocationnameEdgeslmString(); + } + + public static void syncCreateEdgeSlmLocationnameEdgeslmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_LocationnameEdgeslmString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java new file mode 100644 index 000000000000..6b1c1c0037ca --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_StringEdgeslmString_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateEdgeSlmStringEdgeslmString { + + public static void main(String[] args) throws Exception { + syncCreateEdgeSlmStringEdgeslmString(); + } + + public static void syncCreateEdgeSlmStringEdgeslmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_StringEdgeslmString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java new file mode 100644 index 000000000000..d52e2b2aafc2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncCreateOrchestrationCluster { + + public static void main(String[] args) throws Exception { + asyncCreateOrchestrationCluster(); + } + + public static void asyncCreateOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrchestrationClusterId("orchestrationClusterId75469684") + .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.createOrchestrationClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java new file mode 100644 index 000000000000..d5f3db70aa4e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncCreateOrchestrationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOrchestrationClusterLRO(); + } + + public static void asyncCreateOrchestrationClusterLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrchestrationClusterId("orchestrationClusterId75469684") + .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.createOrchestrationClusterOperationCallable().futureCall(request); + // Do something. + OrchestrationCluster response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java new file mode 100644 index 000000000000..7f82d3103ebc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncCreateOrchestrationCluster(); + } + + public static void syncCreateOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrchestrationClusterId("orchestrationClusterId75469684") + .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OrchestrationCluster response = + telcoAutomationClient.createOrchestrationClusterAsync(request).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java new file mode 100644 index 000000000000..88572f40c6ca --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_LocationnameOrchestrationclusterString_sync] +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString { + + public static void main(String[] args) throws Exception { + syncCreateOrchestrationClusterLocationnameOrchestrationclusterString(); + } + + public static void syncCreateOrchestrationClusterLocationnameOrchestrationclusterString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + OrchestrationCluster response = + telcoAutomationClient + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_LocationnameOrchestrationclusterString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java new file mode 100644 index 000000000000..af7b57241c4e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_StringOrchestrationclusterString_sync] +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncCreateOrchestrationClusterStringOrchestrationclusterString { + + public static void main(String[] args) throws Exception { + syncCreateOrchestrationClusterStringOrchestrationclusterString(); + } + + public static void syncCreateOrchestrationClusterStringOrchestrationclusterString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + OrchestrationCluster response = + telcoAutomationClient + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_StringOrchestrationclusterString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java new file mode 100644 index 000000000000..ca78d6489c19 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteBlueprint { + + public static void main(String[] args) throws Exception { + asyncDeleteBlueprint(); + } + + public static void asyncDeleteBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = telcoAutomationClient.deleteBlueprintCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java new file mode 100644 index 000000000000..10e8ce77f591 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_sync] +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBlueprint { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprint(); + } + + public static void syncDeleteBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + telcoAutomationClient.deleteBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java new file mode 100644 index 000000000000..bdb600aafacf --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprintBlueprintname(); + } + + public static void syncDeleteBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + telcoAutomationClient.deleteBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java new file mode 100644 index 000000000000..29589746e18f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBlueprintString { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprintString(); + } + + public static void syncDeleteBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + telcoAutomationClient.deleteBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java new file mode 100644 index 000000000000..852c8474158d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteEdgeSlm { + + public static void main(String[] args) throws Exception { + asyncDeleteEdgeSlm(); + } + + public static void asyncDeleteEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.deleteEdgeSlmCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java new file mode 100644 index 000000000000..9e746cb43133 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteEdgeSlmLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteEdgeSlmLRO(); + } + + public static void asyncDeleteEdgeSlmLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.deleteEdgeSlmOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java new file mode 100644 index 000000000000..062d346cba59 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_sync] +import com.google.cloud.telcoautomation.v1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEdgeSlm { + + public static void main(String[] args) throws Exception { + syncDeleteEdgeSlm(); + } + + public static void syncDeleteEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setRequestId("requestId693933066") + .build(); + telcoAutomationClient.deleteEdgeSlmAsync(request).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java new file mode 100644 index 000000000000..86d5259f4fb5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_Edgeslmname_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEdgeSlmEdgeslmname { + + public static void main(String[] args) throws Exception { + syncDeleteEdgeSlmEdgeslmname(); + } + + public static void syncDeleteEdgeSlmEdgeslmname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + telcoAutomationClient.deleteEdgeSlmAsync(name).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_Edgeslmname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java new file mode 100644 index 000000000000..e93c7637a43c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_String_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEdgeSlmString { + + public static void main(String[] args) throws Exception { + syncDeleteEdgeSlmString(); + } + + public static void syncDeleteEdgeSlmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString(); + telcoAutomationClient.deleteEdgeSlmAsync(name).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java new file mode 100644 index 000000000000..602d65ffd4f3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteOrchestrationCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteOrchestrationCluster(); + } + + public static void asyncDeleteOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.deleteOrchestrationClusterCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java new file mode 100644 index 000000000000..814c494506f1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.OperationMetadata; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteOrchestrationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOrchestrationClusterLRO(); + } + + public static void asyncDeleteOrchestrationClusterLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.deleteOrchestrationClusterOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java new file mode 100644 index 000000000000..d946e58cce9b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncDeleteOrchestrationCluster(); + } + + public static void syncDeleteOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + telcoAutomationClient.deleteOrchestrationClusterAsync(request).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java new file mode 100644 index 000000000000..422832dfc8ea --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOrchestrationClusterOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncDeleteOrchestrationClusterOrchestrationclustername(); + } + + public static void syncDeleteOrchestrationClusterOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + telcoAutomationClient.deleteOrchestrationClusterAsync(name).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java new file mode 100644 index 000000000000..37ec94490f2b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_String_sync] +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOrchestrationClusterString { + + public static void main(String[] args) throws Exception { + syncDeleteOrchestrationClusterString(); + } + + public static void syncDeleteOrchestrationClusterString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + telcoAutomationClient.deleteOrchestrationClusterAsync(name).get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java new file mode 100644 index 000000000000..1a22bf0745bf --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncDiscardBlueprintChanges { + + public static void main(String[] args) throws Exception { + asyncDiscardBlueprintChanges(); + } + + public static void asyncDiscardBlueprintChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.discardBlueprintChangesCallable().futureCall(request); + // Do something. + DiscardBlueprintChangesResponse response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java new file mode 100644 index 000000000000..6d30432165ac --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_sync] +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncDiscardBlueprintChanges { + + public static void main(String[] args) throws Exception { + syncDiscardBlueprintChanges(); + } + + public static void syncDiscardBlueprintChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + DiscardBlueprintChangesResponse response = + telcoAutomationClient.discardBlueprintChanges(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java new file mode 100644 index 000000000000..ca240598c2c0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncDiscardBlueprintChangesBlueprintname { + + public static void main(String[] args) throws Exception { + syncDiscardBlueprintChangesBlueprintname(); + } + + public static void syncDiscardBlueprintChangesBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + DiscardBlueprintChangesResponse response = + telcoAutomationClient.discardBlueprintChanges(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java new file mode 100644 index 000000000000..d7b25650ed8e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_String_sync] +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncDiscardBlueprintChangesString { + + public static void main(String[] args) throws Exception { + syncDiscardBlueprintChangesString(); + } + + public static void syncDiscardBlueprintChangesString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + DiscardBlueprintChangesResponse response = + telcoAutomationClient.discardBlueprintChanges(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java new file mode 100644 index 000000000000..7f90c345ff28 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncDiscardDeploymentChanges { + + public static void main(String[] args) throws Exception { + asyncDiscardDeploymentChanges(); + } + + public static void asyncDiscardDeploymentChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.discardDeploymentChangesCallable().futureCall(request); + // Do something. + DiscardDeploymentChangesResponse response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java new file mode 100644 index 000000000000..894377e369ff --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncDiscardDeploymentChanges { + + public static void main(String[] args) throws Exception { + syncDiscardDeploymentChanges(); + } + + public static void syncDiscardDeploymentChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + DiscardDeploymentChangesResponse response = + telcoAutomationClient.discardDeploymentChanges(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java new file mode 100644 index 000000000000..80a8018d5928 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncDiscardDeploymentChangesDeploymentname { + + public static void main(String[] args) throws Exception { + syncDiscardDeploymentChangesDeploymentname(); + } + + public static void syncDiscardDeploymentChangesDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + DiscardDeploymentChangesResponse response = + telcoAutomationClient.discardDeploymentChanges(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java new file mode 100644 index 000000000000..57aabce06f4a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_String_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncDiscardDeploymentChangesString { + + public static void main(String[] args) throws Exception { + syncDiscardDeploymentChangesString(); + } + + public static void syncDiscardDeploymentChangesString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + DiscardDeploymentChangesResponse response = + telcoAutomationClient.discardDeploymentChanges(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/AsyncGetBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/AsyncGetBlueprint.java new file mode 100644 index 000000000000..ff0e24cc084d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/AsyncGetBlueprint.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.BlueprintView; +import com.google.cloud.telcoautomation.v1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetBlueprint { + + public static void main(String[] args) throws Exception { + asyncGetBlueprint(); + } + + public static void asyncGetBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setView(BlueprintView.forNumber(0)) + .build(); + ApiFuture future = + telcoAutomationClient.getBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprint.java new file mode 100644 index 000000000000..c546ad2731ee --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprint.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.BlueprintView; +import com.google.cloud.telcoautomation.v1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetBlueprint { + + public static void main(String[] args) throws Exception { + syncGetBlueprint(); + } + + public static void syncGetBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setView(BlueprintView.forNumber(0)) + .build(); + Blueprint response = telcoAutomationClient.getBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java new file mode 100644 index 000000000000..46463415edb2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncGetBlueprintBlueprintname(); + } + + public static void syncGetBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.getBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintString.java new file mode 100644 index 000000000000..e74939820a8b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getblueprint/SyncGetBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetBlueprintString { + + public static void main(String[] args) throws Exception { + syncGetBlueprintString(); + } + + public static void syncGetBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.getBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/AsyncGetDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/AsyncGetDeployment.java new file mode 100644 index 000000000000..a34f8832acb2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/AsyncGetDeployment.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.DeploymentView; +import com.google.cloud.telcoautomation.v1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetDeployment { + + public static void main(String[] args) throws Exception { + asyncGetDeployment(); + } + + public static void asyncGetDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setView(DeploymentView.forNumber(0)) + .build(); + ApiFuture future = + telcoAutomationClient.getDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeployment.java new file mode 100644 index 000000000000..c0780843c26d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetDeployment_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.DeploymentView; +import com.google.cloud.telcoautomation.v1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetDeployment { + + public static void main(String[] args) throws Exception { + syncGetDeployment(); + } + + public static void syncGetDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setView(DeploymentView.forNumber(0)) + .build(); + Deployment response = telcoAutomationClient.getDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java new file mode 100644 index 000000000000..95391cacc777 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncGetDeploymentDeploymentname(); + } + + public static void syncGetDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + Deployment response = telcoAutomationClient.getDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentString.java new file mode 100644 index 000000000000..917546a08db5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getdeployment/SyncGetDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetDeployment_String_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetDeploymentString(); + } + + public static void syncGetDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + Deployment response = telcoAutomationClient.getDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java new file mode 100644 index 000000000000..7bd3105b8d6f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetEdgeSlm { + + public static void main(String[] args) throws Exception { + asyncGetEdgeSlm(); + } + + public static void asyncGetEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .build(); + ApiFuture future = telcoAutomationClient.getEdgeSlmCallable().futureCall(request); + // Do something. + EdgeSlm response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java new file mode 100644 index 000000000000..d5997932cf11 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetEdgeSlm { + + public static void main(String[] args) throws Exception { + syncGetEdgeSlm(); + } + + public static void syncGetEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .build(); + EdgeSlm response = telcoAutomationClient.getEdgeSlm(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java new file mode 100644 index 000000000000..4f9237662634 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_Edgeslmname_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetEdgeSlmEdgeslmname { + + public static void main(String[] args) throws Exception { + syncGetEdgeSlmEdgeslmname(); + } + + public static void syncGetEdgeSlmEdgeslmname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + EdgeSlm response = telcoAutomationClient.getEdgeSlm(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_Edgeslmname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java new file mode 100644 index 000000000000..3045e097bf8c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_String_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetEdgeSlmString { + + public static void main(String[] args) throws Exception { + syncGetEdgeSlmString(); + } + + public static void syncGetEdgeSlmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString(); + EdgeSlm response = telcoAutomationClient.getEdgeSlm(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java new file mode 100644 index 000000000000..1ab0934241c6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetHydratedDeployment { + + public static void main(String[] args) throws Exception { + asyncGetHydratedDeployment(); + } + + public static void asyncGetHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.getHydratedDeploymentCallable().futureCall(request); + // Do something. + HydratedDeployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java new file mode 100644 index 000000000000..77551a6a4a0f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_sync] +import com.google.cloud.telcoautomation.v1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetHydratedDeployment { + + public static void main(String[] args) throws Exception { + syncGetHydratedDeployment(); + } + + public static void syncGetHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java new file mode 100644 index 000000000000..c3a80484c7b0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_Hydrateddeploymentname_sync] +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetHydratedDeploymentHydrateddeploymentname { + + public static void main(String[] args) throws Exception { + syncGetHydratedDeploymentHydrateddeploymentname(); + } + + public static void syncGetHydratedDeploymentHydrateddeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_Hydrateddeploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java new file mode 100644 index 000000000000..e353a39e9a84 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_String_sync] +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetHydratedDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetHydratedDeploymentString(); + } + + public static void syncGetHydratedDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString(); + HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/AsyncGetLocation.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..db5304fea409 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = telcoAutomationClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetLocation_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/SyncGetLocation.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..cfde33dd2878 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = telcoAutomationClient.getLocation(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetLocation_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..531d42438465 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + asyncGetOrchestrationCluster(); + } + + public static void asyncGetOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.getOrchestrationClusterCallable().futureCall(request); + // Do something. + OrchestrationCluster response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..98b23e50ee1f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationCluster(); + } + + public static void syncGetOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .build(); + OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java new file mode 100644 index 000000000000..fb829e050009 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetOrchestrationClusterOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationClusterOrchestrationclustername(); + } + + public static void syncGetOrchestrationClusterOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java new file mode 100644 index 000000000000..f5f01c10a681 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_String_sync] +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetOrchestrationClusterString { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationClusterString(); + } + + public static void syncGetOrchestrationClusterString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java new file mode 100644 index 000000000000..0bf7c5bd17a5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncGetPublicBlueprint { + + public static void main(String[] args) throws Exception { + asyncGetPublicBlueprint(); + } + + public static void asyncGetPublicBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .build(); + ApiFuture future = + telcoAutomationClient.getPublicBlueprintCallable().futureCall(request); + // Do something. + PublicBlueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java new file mode 100644 index 000000000000..6350844d9e01 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_sync] +import com.google.cloud.telcoautomation.v1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetPublicBlueprint { + + public static void main(String[] args) throws Exception { + syncGetPublicBlueprint(); + } + + public static void syncGetPublicBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .build(); + PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java new file mode 100644 index 000000000000..d6d8ce4034ab --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_Publicblueprintname_sync] +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetPublicBlueprintPublicblueprintname { + + public static void main(String[] args) throws Exception { + syncGetPublicBlueprintPublicblueprintname(); + } + + public static void syncGetPublicBlueprintPublicblueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_Publicblueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java new file mode 100644 index 000000000000..6bdd6f1a01f9 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncGetPublicBlueprintString { + + public static void main(String[] args) throws Exception { + syncGetPublicBlueprintString(); + } + + public static void syncGetPublicBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString(); + PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java new file mode 100644 index 000000000000..783a951851d1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListBlueprintRevisions { + + public static void main(String[] args) throws Exception { + asyncListBlueprintRevisions(); + } + + public static void asyncListBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listBlueprintRevisionsPagedCallable().futureCall(request); + // Do something. + for (Blueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java new file mode 100644 index 000000000000..4fee70d340ff --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListBlueprintRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListBlueprintRevisionsPaged(); + } + + public static void asyncListBlueprintRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBlueprintRevisionsResponse response = + telcoAutomationClient.listBlueprintRevisionsCallable().call(request); + for (Blueprint element : response.getBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java new file mode 100644 index 000000000000..c20b5143aa2e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListBlueprintRevisions { + + public static void main(String[] args) throws Exception { + syncListBlueprintRevisions(); + } + + public static void syncListBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java new file mode 100644 index 000000000000..071cec53655f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListBlueprintRevisionsBlueprintname { + + public static void main(String[] args) throws Exception { + syncListBlueprintRevisionsBlueprintname(); + } + + public static void syncListBlueprintRevisionsBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java new file mode 100644 index 000000000000..d0e5d85f5738 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_String_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListBlueprintRevisionsString { + + public static void main(String[] args) throws Exception { + syncListBlueprintRevisionsString(); + } + + public static void syncListBlueprintRevisionsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprints.java new file mode 100644 index 000000000000..74823080dfc8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprints.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListBlueprints { + + public static void main(String[] args) throws Exception { + asyncListBlueprints(); + } + + public static void asyncListBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listBlueprintsPagedCallable().futureCall(request); + // Do something. + for (Blueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java new file mode 100644 index 000000000000..9b7778ed0dea --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_Paged_async] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListBlueprintsPaged { + + public static void main(String[] args) throws Exception { + asyncListBlueprintsPaged(); + } + + public static void asyncListBlueprintsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBlueprintsResponse response = + telcoAutomationClient.listBlueprintsCallable().call(request); + for (Blueprint element : response.getBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprints.java new file mode 100644 index 000000000000..1291c96091f2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprints.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListBlueprints { + + public static void main(String[] args) throws Exception { + syncListBlueprints(); + } + + public static void syncListBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blueprint element : telcoAutomationClient.listBlueprints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java new file mode 100644 index 000000000000..b829da2954b6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListBlueprintsOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncListBlueprintsOrchestrationclustername(); + } + + public static void syncListBlueprintsOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsString.java new file mode 100644 index 000000000000..eacd12bc44d7 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listblueprints/SyncListBlueprintsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_String_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListBlueprintsString { + + public static void main(String[] args) throws Exception { + syncListBlueprintsString(); + } + + public static void syncListBlueprintsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java new file mode 100644 index 000000000000..e7588344601c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListDeploymentRevisions { + + public static void main(String[] args) throws Exception { + asyncListDeploymentRevisions(); + } + + public static void asyncListDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listDeploymentRevisionsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java new file mode 100644 index 000000000000..253151d9fcdf --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListDeploymentRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentRevisionsPaged(); + } + + public static void asyncListDeploymentRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDeploymentRevisionsResponse response = + telcoAutomationClient.listDeploymentRevisionsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java new file mode 100644 index 000000000000..4a4d1972f88e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListDeploymentRevisions { + + public static void main(String[] args) throws Exception { + syncListDeploymentRevisions(); + } + + public static void syncListDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Deployment element : + telcoAutomationClient.listDeploymentRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java new file mode 100644 index 000000000000..cf7e3b71e8b6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListDeploymentRevisionsDeploymentname { + + public static void main(String[] args) throws Exception { + syncListDeploymentRevisionsDeploymentname(); + } + + public static void syncListDeploymentRevisionsDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java new file mode 100644 index 000000000000..5c477cef2b6a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_String_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListDeploymentRevisionsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentRevisionsString(); + } + + public static void syncListDeploymentRevisionsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeployments.java new file mode 100644 index 000000000000..b9250c736b17 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeployments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListDeployments { + + public static void main(String[] args) throws Exception { + asyncListDeployments(); + } + + public static void asyncListDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listDeploymentsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeployments_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java new file mode 100644 index 000000000000..0f046c80476b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeployments_Paged_async] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentsPaged(); + } + + public static void asyncListDeploymentsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDeploymentsResponse response = + telcoAutomationClient.listDeploymentsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeployments_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeployments.java new file mode 100644 index 000000000000..5de0daa535cb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeployments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeployments_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListDeployments { + + public static void main(String[] args) throws Exception { + syncListDeployments(); + } + + public static void syncListDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Deployment element : telcoAutomationClient.listDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeployments_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java new file mode 100644 index 000000000000..0305aad1e931 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeployments_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListDeploymentsOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncListDeploymentsOrchestrationclustername(); + } + + public static void syncListDeploymentsOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeployments_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsString.java new file mode 100644 index 000000000000..e8393e7706de --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listdeployments/SyncListDeploymentsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListDeployments_String_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentsString(); + } + + public static void syncListDeploymentsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListDeployments_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java new file mode 100644 index 000000000000..7d65080ee0fc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListEdgeSlms { + + public static void main(String[] args) throws Exception { + asyncListEdgeSlms(); + } + + public static void asyncListEdgeSlms() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + telcoAutomationClient.listEdgeSlmsPagedCallable().futureCall(request); + // Do something. + for (EdgeSlm element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java new file mode 100644 index 000000000000..3d442e096920 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_Paged_async] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListEdgeSlmsPaged { + + public static void main(String[] args) throws Exception { + asyncListEdgeSlmsPaged(); + } + + public static void asyncListEdgeSlmsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListEdgeSlmsResponse response = telcoAutomationClient.listEdgeSlmsCallable().call(request); + for (EdgeSlm element : response.getEdgeSlmsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlms.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlms.java new file mode 100644 index 000000000000..19e45cf43392 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlms.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListEdgeSlms { + + public static void main(String[] args) throws Exception { + syncListEdgeSlms(); + } + + public static void syncListEdgeSlms() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java new file mode 100644 index 000000000000..770441364635 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_Locationname_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListEdgeSlmsLocationname { + + public static void main(String[] args) throws Exception { + syncListEdgeSlmsLocationname(); + } + + public static void syncListEdgeSlmsLocationname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_Locationname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java new file mode 100644 index 000000000000..74a4940713a7 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_String_sync] +import com.google.cloud.telcoautomation.v1.EdgeSlm; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListEdgeSlmsString { + + public static void main(String[] args) throws Exception { + syncListEdgeSlmsString(); + } + + public static void syncListEdgeSlmsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java new file mode 100644 index 000000000000..cd08641a50f8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListHydratedDeployments { + + public static void main(String[] args) throws Exception { + asyncListHydratedDeployments(); + } + + public static void asyncListHydratedDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listHydratedDeploymentsPagedCallable().futureCall(request); + // Do something. + for (HydratedDeployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java new file mode 100644 index 000000000000..81569c5a7047 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_Paged_async] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListHydratedDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListHydratedDeploymentsPaged(); + } + + public static void asyncListHydratedDeploymentsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListHydratedDeploymentsResponse response = + telcoAutomationClient.listHydratedDeploymentsCallable().call(request); + for (HydratedDeployment element : response.getHydratedDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java new file mode 100644 index 000000000000..b5d84f97ee48 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListHydratedDeployments { + + public static void main(String[] args) throws Exception { + syncListHydratedDeployments(); + } + + public static void syncListHydratedDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (HydratedDeployment element : + telcoAutomationClient.listHydratedDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java new file mode 100644 index 000000000000..3483ce0e3907 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListHydratedDeploymentsDeploymentname { + + public static void main(String[] args) throws Exception { + syncListHydratedDeploymentsDeploymentname(); + } + + public static void syncListHydratedDeploymentsDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + for (HydratedDeployment element : + telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java new file mode 100644 index 000000000000..2152f7ad0aa8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_String_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListHydratedDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListHydratedDeploymentsString(); + } + + public static void syncListHydratedDeploymentsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + for (HydratedDeployment element : + telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocations.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..e99953d48430 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListLocations_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocationsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..420916f162f7 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + telcoAutomationClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListLocations_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/SyncListLocations.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..da03c8e147bb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : telcoAutomationClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListLocations_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java new file mode 100644 index 000000000000..d9dfffa6ea98 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListOrchestrationClusters { + + public static void main(String[] args) throws Exception { + asyncListOrchestrationClusters(); + } + + public static void asyncListOrchestrationClusters() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + telcoAutomationClient.listOrchestrationClustersPagedCallable().futureCall(request); + // Do something. + for (OrchestrationCluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java new file mode 100644 index 000000000000..06a7afc843c4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_Paged_async] +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListOrchestrationClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListOrchestrationClustersPaged(); + } + + public static void asyncListOrchestrationClustersPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOrchestrationClustersResponse response = + telcoAutomationClient.listOrchestrationClustersCallable().call(request); + for (OrchestrationCluster element : response.getOrchestrationClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java new file mode 100644 index 000000000000..aeef9d434aa8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_sync] +import com.google.cloud.telcoautomation.v1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListOrchestrationClusters { + + public static void main(String[] args) throws Exception { + syncListOrchestrationClusters(); + } + + public static void syncListOrchestrationClusters() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (OrchestrationCluster element : + telcoAutomationClient.listOrchestrationClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java new file mode 100644 index 000000000000..5ae53a008e96 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_Locationname_sync] +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListOrchestrationClustersLocationname { + + public static void main(String[] args) throws Exception { + syncListOrchestrationClustersLocationname(); + } + + public static void syncListOrchestrationClustersLocationname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (OrchestrationCluster element : + telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_Locationname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java new file mode 100644 index 000000000000..814d779441c4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_String_sync] +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListOrchestrationClustersString { + + public static void main(String[] args) throws Exception { + syncListOrchestrationClustersString(); + } + + public static void syncListOrchestrationClustersString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (OrchestrationCluster element : + telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java new file mode 100644 index 000000000000..c333544f1439 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncListPublicBlueprints { + + public static void main(String[] args) throws Exception { + asyncListPublicBlueprints(); + } + + public static void asyncListPublicBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listPublicBlueprintsPagedCallable().futureCall(request); + // Do something. + for (PublicBlueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java new file mode 100644 index 000000000000..700f60f82e97 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_Paged_async] +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListPublicBlueprintsPaged { + + public static void main(String[] args) throws Exception { + asyncListPublicBlueprintsPaged(); + } + + public static void asyncListPublicBlueprintsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPublicBlueprintsResponse response = + telcoAutomationClient.listPublicBlueprintsCallable().call(request); + for (PublicBlueprint element : response.getPublicBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java new file mode 100644 index 000000000000..636f7a00c80e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_sync] +import com.google.cloud.telcoautomation.v1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListPublicBlueprints { + + public static void main(String[] args) throws Exception { + syncListPublicBlueprints(); + } + + public static void syncListPublicBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PublicBlueprint element : + telcoAutomationClient.listPublicBlueprints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java new file mode 100644 index 000000000000..dbeb0bf69453 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_Locationname_sync] +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListPublicBlueprintsLocationname { + + public static void main(String[] args) throws Exception { + syncListPublicBlueprintsLocationname(); + } + + public static void syncListPublicBlueprintsLocationname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PublicBlueprint element : + telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_Locationname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java new file mode 100644 index 000000000000..5a33134966ba --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_String_sync] +import com.google.cloud.telcoautomation.v1.LocationName; +import com.google.cloud.telcoautomation.v1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncListPublicBlueprintsString { + + public static void main(String[] args) throws Exception { + syncListPublicBlueprintsString(); + } + + public static void syncListPublicBlueprintsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PublicBlueprint element : + telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java new file mode 100644 index 000000000000..d3deb8cd0722 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncProposeBlueprint { + + public static void main(String[] args) throws Exception { + asyncProposeBlueprint(); + } + + public static void asyncProposeBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.proposeBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java new file mode 100644 index 000000000000..a4b4abc5ccff --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncProposeBlueprint { + + public static void main(String[] args) throws Exception { + syncProposeBlueprint(); + } + + public static void syncProposeBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.proposeBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java new file mode 100644 index 000000000000..15e6c71971d8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncProposeBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncProposeBlueprintBlueprintname(); + } + + public static void syncProposeBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.proposeBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java new file mode 100644 index 000000000000..66fe6cc9214d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncProposeBlueprintString { + + public static void main(String[] args) throws Exception { + syncProposeBlueprintString(); + } + + public static void syncProposeBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.proposeBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java new file mode 100644 index 000000000000..e41870d3c297 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncRejectBlueprint { + + public static void main(String[] args) throws Exception { + asyncRejectBlueprint(); + } + + public static void asyncRejectBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.rejectBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java new file mode 100644 index 000000000000..b5e7c73790b6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncRejectBlueprint { + + public static void main(String[] args) throws Exception { + syncRejectBlueprint(); + } + + public static void syncRejectBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.rejectBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java new file mode 100644 index 000000000000..c5afebf1d6f8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncRejectBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncRejectBlueprintBlueprintname(); + } + + public static void syncRejectBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.rejectBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java new file mode 100644 index 000000000000..5233860783de --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.BlueprintName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncRejectBlueprintString { + + public static void main(String[] args) throws Exception { + syncRejectBlueprintString(); + } + + public static void syncRejectBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.rejectBlueprint(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/AsyncRemoveDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/AsyncRemoveDeployment.java new file mode 100644 index 000000000000..cbf77a84cbfd --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/AsyncRemoveDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncRemoveDeployment { + + public static void main(String[] args) throws Exception { + asyncRemoveDeployment(); + } + + public static void asyncRemoveDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.removeDeploymentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeployment.java new file mode 100644 index 000000000000..b11e4bf0b38b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncRemoveDeployment { + + public static void main(String[] args) throws Exception { + syncRemoveDeployment(); + } + + public static void syncRemoveDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + telcoAutomationClient.removeDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java new file mode 100644 index 000000000000..728aab02b6af --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncRemoveDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncRemoveDeploymentDeploymentname(); + } + + public static void syncRemoveDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + telcoAutomationClient.removeDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java new file mode 100644 index 000000000000..89d455131212 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_String_sync] +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncRemoveDeploymentString { + + public static void main(String[] args) throws Exception { + syncRemoveDeploymentString(); + } + + public static void syncRemoveDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + telcoAutomationClient.removeDeployment(name); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java new file mode 100644 index 000000000000..4ddd312f5e03 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncRollbackDeployment { + + public static void main(String[] args) throws Exception { + asyncRollbackDeployment(); + } + + public static void asyncRollbackDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .build(); + ApiFuture future = + telcoAutomationClient.rollbackDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java new file mode 100644 index 000000000000..5b7159175f32 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncRollbackDeployment { + + public static void main(String[] args) throws Exception { + syncRollbackDeployment(); + } + + public static void syncRollbackDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .build(); + Deployment response = telcoAutomationClient.rollbackDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java new file mode 100644 index 000000000000..1f34211ed1ca --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_DeploymentnameString_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncRollbackDeploymentDeploymentnameString { + + public static void main(String[] args) throws Exception { + syncRollbackDeploymentDeploymentnameString(); + } + + public static void syncRollbackDeploymentDeploymentnameString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_DeploymentnameString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java new file mode 100644 index 000000000000..619f194f7cb3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_StringString_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.DeploymentName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncRollbackDeploymentStringString { + + public static void main(String[] args) throws Exception { + syncRollbackDeploymentStringString(); + } + + public static void syncRollbackDeploymentStringString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + String revisionId = "revisionId-1507445162"; + Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_StringString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java new file mode 100644 index 000000000000..e671e3844c6a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncSearchBlueprintRevisions { + + public static void main(String[] args) throws Exception { + asyncSearchBlueprintRevisions(); + } + + public static void asyncSearchBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.searchBlueprintRevisionsPagedCallable().futureCall(request); + // Do something. + for (Blueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java new file mode 100644 index 000000000000..12a75c23b83b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncSearchBlueprintRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchBlueprintRevisionsPaged(); + } + + public static void asyncSearchBlueprintRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchBlueprintRevisionsResponse response = + telcoAutomationClient.searchBlueprintRevisionsCallable().call(request); + for (Blueprint element : response.getBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java new file mode 100644 index 000000000000..0c70ba9e7b6e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncSearchBlueprintRevisions { + + public static void main(String[] args) throws Exception { + syncSearchBlueprintRevisions(); + } + + public static void syncSearchBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blueprint element : + telcoAutomationClient.searchBlueprintRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java new file mode 100644 index 000000000000..5ce1f98c87b7 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_OrchestrationclusternameString_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncSearchBlueprintRevisionsOrchestrationclusternameString { + + public static void main(String[] args) throws Exception { + syncSearchBlueprintRevisionsOrchestrationclusternameString(); + } + + public static void syncSearchBlueprintRevisionsOrchestrationclusternameString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + for (Blueprint element : + telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_OrchestrationclusternameString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java new file mode 100644 index 000000000000..9407f607ed25 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_StringString_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncSearchBlueprintRevisionsStringString { + + public static void main(String[] args) throws Exception { + syncSearchBlueprintRevisionsStringString(); + } + + public static void syncSearchBlueprintRevisionsStringString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + String query = "query107944136"; + for (Blueprint element : + telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_StringString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java new file mode 100644 index 000000000000..c4de1bb58ced --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class AsyncSearchDeploymentRevisions { + + public static void main(String[] args) throws Exception { + asyncSearchDeploymentRevisions(); + } + + public static void asyncSearchDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.searchDeploymentRevisionsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java new file mode 100644 index 000000000000..412873f81dde --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncSearchDeploymentRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchDeploymentRevisionsPaged(); + } + + public static void asyncSearchDeploymentRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchDeploymentRevisionsResponse response = + telcoAutomationClient.searchDeploymentRevisionsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java new file mode 100644 index 000000000000..6c6dfc36805c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncSearchDeploymentRevisions { + + public static void main(String[] args) throws Exception { + syncSearchDeploymentRevisions(); + } + + public static void syncSearchDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Deployment element : + telcoAutomationClient.searchDeploymentRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java new file mode 100644 index 000000000000..69c074418166 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_OrchestrationclusternameString_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncSearchDeploymentRevisionsOrchestrationclusternameString { + + public static void main(String[] args) throws Exception { + syncSearchDeploymentRevisionsOrchestrationclusternameString(); + } + + public static void syncSearchDeploymentRevisionsOrchestrationclusternameString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + for (Deployment element : + telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_OrchestrationclusternameString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java new file mode 100644 index 000000000000..5c1d4e67ca09 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_StringString_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; + +public class SyncSearchDeploymentRevisionsStringString { + + public static void main(String[] args) throws Exception { + syncSearchDeploymentRevisionsStringString(); + } + + public static void syncSearchDeploymentRevisionsStringString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + String query = "query107944136"; + for (Deployment element : + telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_StringString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java new file mode 100644 index 000000000000..4815f8a8ced2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBlueprint { + + public static void main(String[] args) throws Exception { + asyncUpdateBlueprint(); + } + + public static void asyncUpdateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(Blueprint.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.updateBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java new file mode 100644 index 000000000000..771dd2397bb6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.UpdateBlueprintRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBlueprint { + + public static void main(String[] args) throws Exception { + syncUpdateBlueprint(); + } + + public static void syncUpdateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(Blueprint.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Blueprint response = telcoAutomationClient.updateBlueprint(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java new file mode 100644 index 000000000000..9968d70e975c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_BlueprintFieldmask_sync] +import com.google.cloud.telcoautomation.v1.Blueprint; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBlueprintBlueprintFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBlueprintBlueprintFieldmask(); + } + + public static void syncUpdateBlueprintBlueprintFieldmask() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + Blueprint blueprint = Blueprint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Blueprint response = telcoAutomationClient.updateBlueprint(blueprint, updateMask); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_BlueprintFieldmask_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java new file mode 100644 index 000000000000..d63fa48d77b6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateDeployment(); + } + + public static void asyncUpdateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.updateDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeployment.java new file mode 100644 index 000000000000..14e6679f1f37 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeployment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.UpdateDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateDeployment(); + } + + public static void syncUpdateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Deployment response = telcoAutomationClient.updateDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java new file mode 100644 index 000000000000..8d9fed4b6d95 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_DeploymentFieldmask_sync] +import com.google.cloud.telcoautomation.v1.Deployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeploymentDeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDeploymentDeploymentFieldmask(); + } + + public static void syncUpdateDeploymentDeploymentFieldmask() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Deployment response = telcoAutomationClient.updateDeployment(deployment, updateMask); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_DeploymentFieldmask_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java new file mode 100644 index 000000000000..0d33b23b9996 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateHydratedDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateHydratedDeployment(); + } + + public static void asyncUpdateHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(HydratedDeployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.updateHydratedDeploymentCallable().futureCall(request); + // Do something. + HydratedDeployment response = future.get(); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java new file mode 100644 index 000000000000..6fd80ee9788f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_sync] +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1.UpdateHydratedDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHydratedDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateHydratedDeployment(); + } + + public static void syncUpdateHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(HydratedDeployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + HydratedDeployment response = telcoAutomationClient.updateHydratedDeployment(request); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java new file mode 100644 index 000000000000..05708b75ef0a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_HydrateddeploymentFieldmask_sync] +import com.google.cloud.telcoautomation.v1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1.TelcoAutomationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateHydratedDeploymentHydrateddeploymentFieldmask(); + } + + public static void syncUpdateHydratedDeploymentHydrateddeploymentFieldmask() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + HydratedDeployment response = + telcoAutomationClient.updateHydratedDeployment(hydratedDeployment, updateMask); + } + } +} +// [END telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_HydrateddeploymentFieldmask_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..70ec7339d0a7 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1.samples; + +// [START telcoautomation_v1_generated_TelcoAutomationSettings_GetOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1.TelcoAutomationSettings; +import java.time.Duration; + +public class SyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationCluster(); + } + + public static void syncGetOrchestrationCluster() 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 + TelcoAutomationSettings.Builder telcoAutomationSettingsBuilder = + TelcoAutomationSettings.newBuilder(); + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .setRetrySettings( + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TelcoAutomationSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build(); + } +} +// [END telcoautomation_v1_generated_TelcoAutomationSettings_GetOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..8d9c0cc083be --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/stub/telcoautomationstubsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.stub.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomationStubSettings_GetOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1alpha1.stub.TelcoAutomationStubSettings; +import java.time.Duration; + +public class SyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationCluster(); + } + + public static void syncGetOrchestrationCluster() 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 + TelcoAutomationStubSettings.Builder telcoAutomationSettingsBuilder = + TelcoAutomationStubSettings.newBuilder(); + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .setRetrySettings( + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TelcoAutomationStubSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build(); + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomationStubSettings_GetOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/AsyncApplyDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/AsyncApplyDeployment.java new file mode 100644 index 000000000000..ac17ec783bca --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/AsyncApplyDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncApplyDeployment { + + public static void main(String[] args) throws Exception { + asyncApplyDeployment(); + } + + public static void asyncApplyDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.applyDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeployment.java new file mode 100644 index 000000000000..b6b1557482c2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApplyDeployment { + + public static void main(String[] args) throws Exception { + syncApplyDeployment(); + } + + public static void syncApplyDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + Deployment response = telcoAutomationClient.applyDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java new file mode 100644 index 000000000000..6c0c84a2d3ab --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApplyDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncApplyDeploymentDeploymentname(); + } + + public static void syncApplyDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + Deployment response = telcoAutomationClient.applyDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentString.java new file mode 100644 index 000000000000..71690fc34773 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applydeployment/SyncApplyDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApplyDeploymentString { + + public static void main(String[] args) throws Exception { + syncApplyDeploymentString(); + } + + public static void syncApplyDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + Deployment response = telcoAutomationClient.applyDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java new file mode 100644 index 000000000000..0f905ace4e90 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/AsyncApplyHydratedDeployment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncApplyHydratedDeployment { + + public static void main(String[] args) throws Exception { + asyncApplyHydratedDeployment(); + } + + public static void asyncApplyHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.applyHydratedDeploymentCallable().futureCall(request); + // Do something. + HydratedDeployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java new file mode 100644 index 000000000000..fc20981d1e2f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApplyHydratedDeployment { + + public static void main(String[] args) throws Exception { + syncApplyHydratedDeployment(); + } + + public static void syncApplyHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java new file mode 100644 index 000000000000..b8da291247fd --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentHydrateddeploymentname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_Hydrateddeploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApplyHydratedDeploymentHydrateddeploymentname { + + public static void main(String[] args) throws Exception { + syncApplyHydratedDeploymentHydrateddeploymentname(); + } + + public static void syncApplyHydratedDeploymentHydrateddeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_Hydrateddeploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java new file mode 100644 index 000000000000..151839e3bed4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/applyhydrateddeployment/SyncApplyHydratedDeploymentString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApplyHydratedDeploymentString { + + public static void main(String[] args) throws Exception { + syncApplyHydratedDeploymentString(); + } + + public static void syncApplyHydratedDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString(); + HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java new file mode 100644 index 000000000000..f57d5c1b8f82 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/AsyncApproveBlueprint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncApproveBlueprint { + + public static void main(String[] args) throws Exception { + asyncApproveBlueprint(); + } + + public static void asyncApproveBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.approveBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprint.java new file mode 100644 index 000000000000..f03b3511a361 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApproveBlueprint { + + public static void main(String[] args) throws Exception { + syncApproveBlueprint(); + } + + public static void syncApproveBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.approveBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java new file mode 100644 index 000000000000..18f216b01244 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApproveBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncApproveBlueprintBlueprintname(); + } + + public static void syncApproveBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.approveBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java new file mode 100644 index 000000000000..1eee1d95f6ff --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/approveblueprint/SyncApproveBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncApproveBlueprintString { + + public static void main(String[] args) throws Exception { + syncApproveBlueprintString(); + } + + public static void syncApproveBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.approveBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java new file mode 100644 index 000000000000..2b8bcb351476 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/AsyncComputeDeploymentStatus.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncComputeDeploymentStatus { + + public static void main(String[] args) throws Exception { + asyncComputeDeploymentStatus(); + } + + public static void asyncComputeDeploymentStatus() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.computeDeploymentStatusCallable().futureCall(request); + // Do something. + ComputeDeploymentStatusResponse response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java new file mode 100644 index 000000000000..2e179eb53207 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatus.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_sync] +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest; +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncComputeDeploymentStatus { + + public static void main(String[] args) throws Exception { + syncComputeDeploymentStatus(); + } + + public static void syncComputeDeploymentStatus() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ComputeDeploymentStatusResponse response = + telcoAutomationClient.computeDeploymentStatus(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java new file mode 100644 index 000000000000..260e32ea3f1d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusDeploymentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncComputeDeploymentStatusDeploymentname { + + public static void main(String[] args) throws Exception { + syncComputeDeploymentStatusDeploymentname(); + } + + public static void syncComputeDeploymentStatusDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + ComputeDeploymentStatusResponse response = + telcoAutomationClient.computeDeploymentStatus(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java new file mode 100644 index 000000000000..c3b460eae628 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/computedeploymentstatus/SyncComputeDeploymentStatusString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncComputeDeploymentStatusString { + + public static void main(String[] args) throws Exception { + syncComputeDeploymentStatusString(); + } + + public static void syncComputeDeploymentStatusString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + ComputeDeploymentStatusResponse response = + telcoAutomationClient.computeDeploymentStatus(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..4709609bd534 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationSettings; +import com.google.cloud.telcoautomation.v1alpha1.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 + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetCredentialsProvider_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..2f6ce3084c5e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() 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 + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newHttpJsonBuilder().build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetCredentialsProvider1_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetEndpoint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ecf2facbbaf1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetEndpoint_sync] +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationSettings; +import com.google.cloud.telcoautomation.v1alpha1.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 + TelcoAutomationSettings telcoAutomationSettings = + TelcoAutomationSettings.newBuilder().setEndpoint(myEndpoint).build(); + TelcoAutomationClient telcoAutomationClient = + TelcoAutomationClient.create(telcoAutomationSettings); + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_Create_SetEndpoint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/AsyncCreateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/AsyncCreateBlueprint.java new file mode 100644 index 000000000000..76b10920b4dc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/AsyncCreateBlueprint.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncCreateBlueprint { + + public static void main(String[] args) throws Exception { + asyncCreateBlueprint(); + } + + public static void asyncCreateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setBlueprintId("blueprintId-1159505138") + .setBlueprint(Blueprint.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.createBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprint.java new file mode 100644 index 000000000000..9164a6911a26 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprint.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateBlueprint { + + public static void main(String[] args) throws Exception { + syncCreateBlueprint(); + } + + public static void syncCreateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setBlueprintId("blueprintId-1159505138") + .setBlueprint(Blueprint.newBuilder().build()) + .build(); + Blueprint response = telcoAutomationClient.createBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java new file mode 100644 index 000000000000..b9677f64c5fd --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintOrchestrationclusternameBlueprintString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_OrchestrationclusternameBlueprintString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateBlueprintOrchestrationclusternameBlueprintString { + + public static void main(String[] args) throws Exception { + syncCreateBlueprintOrchestrationclusternameBlueprintString(); + } + + public static void syncCreateBlueprintOrchestrationclusternameBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_OrchestrationclusternameBlueprintString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java new file mode 100644 index 000000000000..ca94f7c1b706 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createblueprint/SyncCreateBlueprintStringBlueprintString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_StringBlueprintString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateBlueprintStringBlueprintString { + + public static void main(String[] args) throws Exception { + syncCreateBlueprintStringBlueprintString(); + } + + public static void syncCreateBlueprintStringBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + Blueprint blueprint = Blueprint.newBuilder().build(); + String blueprintId = "blueprintId-1159505138"; + Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_StringBlueprintString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/AsyncCreateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/AsyncCreateDeployment.java new file mode 100644 index 000000000000..4dc2eee6ed47 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/AsyncCreateDeployment.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncCreateDeployment { + + public static void main(String[] args) throws Exception { + asyncCreateDeployment(); + } + + public static void asyncCreateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setDeploymentId("deploymentId-136894784") + .setDeployment(Deployment.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.createDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeployment.java new file mode 100644 index 000000000000..15d37078dc77 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeployment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateDeployment { + + public static void main(String[] args) throws Exception { + syncCreateDeployment(); + } + + public static void syncCreateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setDeploymentId("deploymentId-136894784") + .setDeployment(Deployment.newBuilder().build()) + .build(); + Deployment response = telcoAutomationClient.createDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java new file mode 100644 index 000000000000..314925b8c9f3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentOrchestrationclusternameDeploymentString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_OrchestrationclusternameDeploymentString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateDeploymentOrchestrationclusternameDeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentOrchestrationclusternameDeploymentString(); + } + + public static void syncCreateDeploymentOrchestrationclusternameDeploymentString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + Deployment response = + telcoAutomationClient.createDeployment(parent, deployment, deploymentId); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_OrchestrationclusternameDeploymentString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java new file mode 100644 index 000000000000..113c3cd4dd89 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createdeployment/SyncCreateDeploymentStringDeploymentString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_StringDeploymentString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateDeploymentStringDeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentStringDeploymentString(); + } + + public static void syncCreateDeploymentStringDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + Deployment response = + telcoAutomationClient.createDeployment(parent, deployment, deploymentId); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_StringDeploymentString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java new file mode 100644 index 000000000000..174ff7173ea6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlm.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncCreateEdgeSlm { + + public static void main(String[] args) throws Exception { + asyncCreateEdgeSlm(); + } + + public static void asyncCreateEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEdgeSlmId("edgeSlmId213186994") + .setEdgeSlm(EdgeSlm.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.createEdgeSlmCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java new file mode 100644 index 000000000000..f62b9254526a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/AsyncCreateEdgeSlmLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncCreateEdgeSlmLRO { + + public static void main(String[] args) throws Exception { + asyncCreateEdgeSlmLRO(); + } + + public static void asyncCreateEdgeSlmLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEdgeSlmId("edgeSlmId213186994") + .setEdgeSlm(EdgeSlm.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.createEdgeSlmOperationCallable().futureCall(request); + // Do something. + EdgeSlm response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java new file mode 100644 index 000000000000..ac8255569151 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlm.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_sync] +import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateEdgeSlm { + + public static void main(String[] args) throws Exception { + syncCreateEdgeSlm(); + } + + public static void syncCreateEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateEdgeSlmRequest request = + CreateEdgeSlmRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setEdgeSlmId("edgeSlmId213186994") + .setEdgeSlm(EdgeSlm.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(request).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java new file mode 100644 index 000000000000..a36d3025ecbc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmLocationnameEdgeslmString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_LocationnameEdgeslmString_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateEdgeSlmLocationnameEdgeslmString { + + public static void main(String[] args) throws Exception { + syncCreateEdgeSlmLocationnameEdgeslmString(); + } + + public static void syncCreateEdgeSlmLocationnameEdgeslmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_LocationnameEdgeslmString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java new file mode 100644 index 000000000000..08e32f5a1d7c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createedgeslm/SyncCreateEdgeSlmStringEdgeslmString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_StringEdgeslmString_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateEdgeSlmStringEdgeslmString { + + public static void main(String[] args) throws Exception { + syncCreateEdgeSlmStringEdgeslmString(); + } + + public static void syncCreateEdgeSlmStringEdgeslmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + String edgeSlmId = "edgeSlmId213186994"; + EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_StringEdgeslmString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java new file mode 100644 index 000000000000..836d903fdc5f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationCluster.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncCreateOrchestrationCluster { + + public static void main(String[] args) throws Exception { + asyncCreateOrchestrationCluster(); + } + + public static void asyncCreateOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrchestrationClusterId("orchestrationClusterId75469684") + .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.createOrchestrationClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java new file mode 100644 index 000000000000..0be869e82a53 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/AsyncCreateOrchestrationClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncCreateOrchestrationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOrchestrationClusterLRO(); + } + + public static void asyncCreateOrchestrationClusterLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrchestrationClusterId("orchestrationClusterId75469684") + .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.createOrchestrationClusterOperationCallable().futureCall(request); + // Do something. + OrchestrationCluster response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java new file mode 100644 index 000000000000..3a4b2dcbb78a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncCreateOrchestrationCluster(); + } + + public static void syncCreateOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + CreateOrchestrationClusterRequest request = + CreateOrchestrationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrchestrationClusterId("orchestrationClusterId75469684") + .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OrchestrationCluster response = + telcoAutomationClient.createOrchestrationClusterAsync(request).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java new file mode 100644 index 000000000000..3529e18eb482 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_LocationnameOrchestrationclusterString_sync] +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateOrchestrationClusterLocationnameOrchestrationclusterString { + + public static void main(String[] args) throws Exception { + syncCreateOrchestrationClusterLocationnameOrchestrationclusterString(); + } + + public static void syncCreateOrchestrationClusterLocationnameOrchestrationclusterString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + OrchestrationCluster response = + telcoAutomationClient + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_LocationnameOrchestrationclusterString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java new file mode 100644 index 000000000000..fec1ef576db2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/createorchestrationcluster/SyncCreateOrchestrationClusterStringOrchestrationclusterString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_StringOrchestrationclusterString_sync] +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncCreateOrchestrationClusterStringOrchestrationclusterString { + + public static void main(String[] args) throws Exception { + syncCreateOrchestrationClusterStringOrchestrationclusterString(); + } + + public static void syncCreateOrchestrationClusterStringOrchestrationclusterString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + String orchestrationClusterId = "orchestrationClusterId75469684"; + OrchestrationCluster response = + telcoAutomationClient + .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + .get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_StringOrchestrationclusterString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java new file mode 100644 index 000000000000..70c9348d3f6e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/AsyncDeleteBlueprint.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteBlueprint { + + public static void main(String[] args) throws Exception { + asyncDeleteBlueprint(); + } + + public static void asyncDeleteBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = telcoAutomationClient.deleteBlueprintCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java new file mode 100644 index 000000000000..103f1f783244 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBlueprint { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprint(); + } + + public static void syncDeleteBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + telcoAutomationClient.deleteBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java new file mode 100644 index 000000000000..93f7beab8581 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprintBlueprintname(); + } + + public static void syncDeleteBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + telcoAutomationClient.deleteBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java new file mode 100644 index 000000000000..17c32df10af5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprint/SyncDeleteBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBlueprintString { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprintString(); + } + + public static void syncDeleteBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + telcoAutomationClient.deleteBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/AsyncDeleteBlueprintRevision.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/AsyncDeleteBlueprintRevision.java new file mode 100644 index 000000000000..cc24daf00d10 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/AsyncDeleteBlueprintRevision.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprintRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncDeleteBlueprintRevision { + + public static void main(String[] args) throws Exception { + asyncDeleteBlueprintRevision(); + } + + public static void asyncDeleteBlueprintRevision() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteBlueprintRevisionRequest request = + DeleteBlueprintRevisionRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.deleteBlueprintRevisionCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprintRevision_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/SyncDeleteBlueprintRevision.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/SyncDeleteBlueprintRevision.java new file mode 100644 index 000000000000..93f008f8be55 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteblueprintrevision/SyncDeleteBlueprintRevision.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprintRevision_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDeleteBlueprintRevision { + + public static void main(String[] args) throws Exception { + syncDeleteBlueprintRevision(); + } + + public static void syncDeleteBlueprintRevision() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteBlueprintRevisionRequest request = + DeleteBlueprintRevisionRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.deleteBlueprintRevision(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprintRevision_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/AsyncDeleteDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/AsyncDeleteDeployment.java new file mode 100644 index 000000000000..11f8e52739bd --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/AsyncDeleteDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteDeployment { + + public static void main(String[] args) throws Exception { + asyncDeleteDeployment(); + } + + public static void asyncDeleteDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteDeploymentRequest request = + DeleteDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.deleteDeploymentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeployment.java new file mode 100644 index 000000000000..2288f2887334 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDeployment { + + public static void main(String[] args) throws Exception { + syncDeleteDeployment(); + } + + public static void syncDeleteDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteDeploymentRequest request = + DeleteDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + telcoAutomationClient.deleteDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentDeploymentname.java new file mode 100644 index 000000000000..eb8f82c37c60 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentDeploymentname(); + } + + public static void syncDeleteDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + telcoAutomationClient.deleteDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentString.java new file mode 100644 index 000000000000..79458e49bac1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeployment/SyncDeleteDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDeploymentString { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentString(); + } + + public static void syncDeleteDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + telcoAutomationClient.deleteDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/AsyncDeleteDeploymentRevision.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/AsyncDeleteDeploymentRevision.java new file mode 100644 index 000000000000..80ce9984e8db --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/AsyncDeleteDeploymentRevision.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeploymentRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncDeleteDeploymentRevision { + + public static void main(String[] args) throws Exception { + asyncDeleteDeploymentRevision(); + } + + public static void asyncDeleteDeploymentRevision() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteDeploymentRevisionRequest request = + DeleteDeploymentRevisionRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.deleteDeploymentRevisionCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeploymentRevision_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/SyncDeleteDeploymentRevision.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/SyncDeleteDeploymentRevision.java new file mode 100644 index 000000000000..bb3676aa31cb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deletedeploymentrevision/SyncDeleteDeploymentRevision.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeploymentRevision_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeleteDeploymentRevisionRequest; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDeleteDeploymentRevision { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentRevision(); + } + + public static void syncDeleteDeploymentRevision() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteDeploymentRevisionRequest request = + DeleteDeploymentRevisionRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + Deployment response = telcoAutomationClient.deleteDeploymentRevision(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteDeploymentRevision_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java new file mode 100644 index 000000000000..51b6ac78b739 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlm.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteEdgeSlm { + + public static void main(String[] args) throws Exception { + asyncDeleteEdgeSlm(); + } + + public static void asyncDeleteEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.deleteEdgeSlmCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java new file mode 100644 index 000000000000..8ac3e4eb1470 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/AsyncDeleteEdgeSlmLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteEdgeSlmLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteEdgeSlmLRO(); + } + + public static void asyncDeleteEdgeSlmLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.deleteEdgeSlmOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java new file mode 100644 index 000000000000..a7640b7e8f25 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlm.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEdgeSlm { + + public static void main(String[] args) throws Exception { + syncDeleteEdgeSlm(); + } + + public static void syncDeleteEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteEdgeSlmRequest request = + DeleteEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .setRequestId("requestId693933066") + .build(); + telcoAutomationClient.deleteEdgeSlmAsync(request).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java new file mode 100644 index 000000000000..b8272a8fa321 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmEdgeslmname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_Edgeslmname_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEdgeSlmEdgeslmname { + + public static void main(String[] args) throws Exception { + syncDeleteEdgeSlmEdgeslmname(); + } + + public static void syncDeleteEdgeSlmEdgeslmname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + telcoAutomationClient.deleteEdgeSlmAsync(name).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_Edgeslmname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java new file mode 100644 index 000000000000..f04122deb1c9 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteedgeslm/SyncDeleteEdgeSlmString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteEdgeSlmString { + + public static void main(String[] args) throws Exception { + syncDeleteEdgeSlmString(); + } + + public static void syncDeleteEdgeSlmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString(); + telcoAutomationClient.deleteEdgeSlmAsync(name).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java new file mode 100644 index 000000000000..7278f196db8c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationCluster.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteOrchestrationCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteOrchestrationCluster(); + } + + public static void asyncDeleteOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + telcoAutomationClient.deleteOrchestrationClusterCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java new file mode 100644 index 000000000000..b348d6020d6a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/AsyncDeleteOrchestrationClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteOrchestrationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOrchestrationClusterLRO(); + } + + public static void asyncDeleteOrchestrationClusterLRO() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + telcoAutomationClient.deleteOrchestrationClusterOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_LRO_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java new file mode 100644 index 000000000000..fdd9893d0eb0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncDeleteOrchestrationCluster(); + } + + public static void syncDeleteOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeleteOrchestrationClusterRequest request = + DeleteOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setRequestId("requestId693933066") + .build(); + telcoAutomationClient.deleteOrchestrationClusterAsync(request).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java new file mode 100644 index 000000000000..92d95e0b6502 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterOrchestrationclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOrchestrationClusterOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncDeleteOrchestrationClusterOrchestrationclustername(); + } + + public static void syncDeleteOrchestrationClusterOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + telcoAutomationClient.deleteOrchestrationClusterAsync(name).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java new file mode 100644 index 000000000000..1a248b78a1ee --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/deleteorchestrationcluster/SyncDeleteOrchestrationClusterString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOrchestrationClusterString { + + public static void main(String[] args) throws Exception { + syncDeleteOrchestrationClusterString(); + } + + public static void syncDeleteOrchestrationClusterString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + telcoAutomationClient.deleteOrchestrationClusterAsync(name).get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java new file mode 100644 index 000000000000..ab137898d2b3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/AsyncDiscardBlueprintChanges.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncDiscardBlueprintChanges { + + public static void main(String[] args) throws Exception { + asyncDiscardBlueprintChanges(); + } + + public static void asyncDiscardBlueprintChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.discardBlueprintChangesCallable().futureCall(request); + // Do something. + DiscardBlueprintChangesResponse response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java new file mode 100644 index 000000000000..d13c84a6ebe4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChanges.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_sync] +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDiscardBlueprintChanges { + + public static void main(String[] args) throws Exception { + syncDiscardBlueprintChanges(); + } + + public static void syncDiscardBlueprintChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + DiscardBlueprintChangesResponse response = + telcoAutomationClient.discardBlueprintChanges(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java new file mode 100644 index 000000000000..ae09c667ec36 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesBlueprintname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDiscardBlueprintChangesBlueprintname { + + public static void main(String[] args) throws Exception { + syncDiscardBlueprintChangesBlueprintname(); + } + + public static void syncDiscardBlueprintChangesBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + DiscardBlueprintChangesResponse response = + telcoAutomationClient.discardBlueprintChanges(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java new file mode 100644 index 000000000000..f5e669da63db --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discardblueprintchanges/SyncDiscardBlueprintChangesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDiscardBlueprintChangesString { + + public static void main(String[] args) throws Exception { + syncDiscardBlueprintChangesString(); + } + + public static void syncDiscardBlueprintChangesString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + DiscardBlueprintChangesResponse response = + telcoAutomationClient.discardBlueprintChanges(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java new file mode 100644 index 000000000000..a5e675a57939 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/AsyncDiscardDeploymentChanges.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncDiscardDeploymentChanges { + + public static void main(String[] args) throws Exception { + asyncDiscardDeploymentChanges(); + } + + public static void asyncDiscardDeploymentChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.discardDeploymentChangesCallable().futureCall(request); + // Do something. + DiscardDeploymentChangesResponse response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java new file mode 100644 index 000000000000..cc776b605459 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChanges.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDiscardDeploymentChanges { + + public static void main(String[] args) throws Exception { + syncDiscardDeploymentChanges(); + } + + public static void syncDiscardDeploymentChanges() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + DiscardDeploymentChangesResponse response = + telcoAutomationClient.discardDeploymentChanges(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java new file mode 100644 index 000000000000..f45e68563395 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesDeploymentname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDiscardDeploymentChangesDeploymentname { + + public static void main(String[] args) throws Exception { + syncDiscardDeploymentChangesDeploymentname(); + } + + public static void syncDiscardDeploymentChangesDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + DiscardDeploymentChangesResponse response = + telcoAutomationClient.discardDeploymentChanges(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java new file mode 100644 index 000000000000..35256db153c5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/discarddeploymentchanges/SyncDiscardDeploymentChangesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncDiscardDeploymentChangesString { + + public static void main(String[] args) throws Exception { + syncDiscardDeploymentChangesString(); + } + + public static void syncDiscardDeploymentChangesString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + DiscardDeploymentChangesResponse response = + telcoAutomationClient.discardDeploymentChanges(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/AsyncGetBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/AsyncGetBlueprint.java new file mode 100644 index 000000000000..549f715ffcea --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/AsyncGetBlueprint.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintView; +import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetBlueprint { + + public static void main(String[] args) throws Exception { + asyncGetBlueprint(); + } + + public static void asyncGetBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setView(BlueprintView.forNumber(0)) + .build(); + ApiFuture future = + telcoAutomationClient.getBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprint.java new file mode 100644 index 000000000000..cbee57fc6a50 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprint.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintView; +import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetBlueprint { + + public static void main(String[] args) throws Exception { + syncGetBlueprint(); + } + + public static void syncGetBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setView(BlueprintView.forNumber(0)) + .build(); + Blueprint response = telcoAutomationClient.getBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java new file mode 100644 index 000000000000..eced7838a7e6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncGetBlueprintBlueprintname(); + } + + public static void syncGetBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.getBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintString.java new file mode 100644 index 000000000000..e900371c9e42 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getblueprint/SyncGetBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetBlueprintString { + + public static void main(String[] args) throws Exception { + syncGetBlueprintString(); + } + + public static void syncGetBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.getBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/AsyncGetDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/AsyncGetDeployment.java new file mode 100644 index 000000000000..6d919f0bc77c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/AsyncGetDeployment.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentView; +import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetDeployment { + + public static void main(String[] args) throws Exception { + asyncGetDeployment(); + } + + public static void asyncGetDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setView(DeploymentView.forNumber(0)) + .build(); + ApiFuture future = + telcoAutomationClient.getDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeployment.java new file mode 100644 index 000000000000..a68a55acddc8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentView; +import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetDeployment { + + public static void main(String[] args) throws Exception { + syncGetDeployment(); + } + + public static void syncGetDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setView(DeploymentView.forNumber(0)) + .build(); + Deployment response = telcoAutomationClient.getDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java new file mode 100644 index 000000000000..f5304e926954 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncGetDeploymentDeploymentname(); + } + + public static void syncGetDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + Deployment response = telcoAutomationClient.getDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentString.java new file mode 100644 index 000000000000..42c827d9113b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getdeployment/SyncGetDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetDeploymentString(); + } + + public static void syncGetDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + Deployment response = telcoAutomationClient.getDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java new file mode 100644 index 000000000000..b42026376c22 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/AsyncGetEdgeSlm.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetEdgeSlm { + + public static void main(String[] args) throws Exception { + asyncGetEdgeSlm(); + } + + public static void asyncGetEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .build(); + ApiFuture future = telcoAutomationClient.getEdgeSlmCallable().futureCall(request); + // Do something. + EdgeSlm response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java new file mode 100644 index 000000000000..a62cc66b59e9 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlm.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetEdgeSlm { + + public static void main(String[] args) throws Exception { + syncGetEdgeSlm(); + } + + public static void syncGetEdgeSlm() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder() + .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + .build(); + EdgeSlm response = telcoAutomationClient.getEdgeSlm(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java new file mode 100644 index 000000000000..c8b44a41f9de --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmEdgeslmname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_Edgeslmname_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetEdgeSlmEdgeslmname { + + public static void main(String[] args) throws Exception { + syncGetEdgeSlmEdgeslmname(); + } + + public static void syncGetEdgeSlmEdgeslmname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + EdgeSlm response = telcoAutomationClient.getEdgeSlm(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_Edgeslmname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java new file mode 100644 index 000000000000..d7c9c07b5f6a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getedgeslm/SyncGetEdgeSlmString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlmName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetEdgeSlmString { + + public static void main(String[] args) throws Exception { + syncGetEdgeSlmString(); + } + + public static void syncGetEdgeSlmString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString(); + EdgeSlm response = telcoAutomationClient.getEdgeSlm(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java new file mode 100644 index 000000000000..9406e73f0f76 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/AsyncGetHydratedDeployment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetHydratedDeployment { + + public static void main(String[] args) throws Exception { + asyncGetHydratedDeployment(); + } + + public static void asyncGetHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.getHydratedDeploymentCallable().futureCall(request); + // Do something. + HydratedDeployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java new file mode 100644 index 000000000000..8340185bd271 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetHydratedDeployment { + + public static void main(String[] args) throws Exception { + syncGetHydratedDeployment(); + } + + public static void syncGetHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName( + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString()) + .build(); + HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java new file mode 100644 index 000000000000..fd77f84cedf4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentHydrateddeploymentname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_Hydrateddeploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetHydratedDeploymentHydrateddeploymentname { + + public static void main(String[] args) throws Exception { + syncGetHydratedDeploymentHydrateddeploymentname(); + } + + public static void syncGetHydratedDeploymentHydrateddeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + HydratedDeploymentName name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]"); + HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_Hydrateddeploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java new file mode 100644 index 000000000000..6b0b18c91cf3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/gethydrateddeployment/SyncGetHydratedDeploymentString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetHydratedDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetHydratedDeploymentString(); + } + + public static void syncGetHydratedDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + HydratedDeploymentName.of( + "[PROJECT]", + "[LOCATION]", + "[ORCHESTRATION_CLUSTER]", + "[DEPLOYMENT]", + "[HYDRATED_DEPLOYMENT]") + .toString(); + HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/AsyncGetLocation.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..ee0f05687225 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = telcoAutomationClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetLocation_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/SyncGetLocation.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..4ac57ab96883 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = telcoAutomationClient.getLocation(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetLocation_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..a7291517c657 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/AsyncGetOrchestrationCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + asyncGetOrchestrationCluster(); + } + + public static void asyncGetOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.getOrchestrationClusterCallable().futureCall(request); + // Do something. + OrchestrationCluster response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..5c93619a205b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationCluster(); + } + + public static void syncGetOrchestrationCluster() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .build(); + OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java new file mode 100644 index 000000000000..81e76127e7d9 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterOrchestrationclustername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetOrchestrationClusterOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationClusterOrchestrationclustername(); + } + + public static void syncGetOrchestrationClusterOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java new file mode 100644 index 000000000000..5500f07d5b33 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getorchestrationcluster/SyncGetOrchestrationClusterString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetOrchestrationClusterString { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationClusterString(); + } + + public static void syncGetOrchestrationClusterString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java new file mode 100644 index 000000000000..5a679ec86125 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/AsyncGetPublicBlueprint.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncGetPublicBlueprint { + + public static void main(String[] args) throws Exception { + asyncGetPublicBlueprint(); + } + + public static void asyncGetPublicBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .build(); + ApiFuture future = + telcoAutomationClient.getPublicBlueprintCallable().futureCall(request); + // Do something. + PublicBlueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java new file mode 100644 index 000000000000..c147879251a1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprint.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetPublicBlueprint { + + public static void main(String[] args) throws Exception { + syncGetPublicBlueprint(); + } + + public static void syncGetPublicBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName( + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + .build(); + PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java new file mode 100644 index 000000000000..5e4e58a8150b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintPublicblueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_Publicblueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetPublicBlueprintPublicblueprintname { + + public static void main(String[] args) throws Exception { + syncGetPublicBlueprintPublicblueprintname(); + } + + public static void syncGetPublicBlueprintPublicblueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + PublicBlueprintName name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_Publicblueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java new file mode 100644 index 000000000000..7574a55d3596 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/getpublicblueprint/SyncGetPublicBlueprintString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncGetPublicBlueprintString { + + public static void main(String[] args) throws Exception { + syncGetPublicBlueprintString(); + } + + public static void syncGetPublicBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString(); + PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java new file mode 100644 index 000000000000..d1890056ed24 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListBlueprintRevisions { + + public static void main(String[] args) throws Exception { + asyncListBlueprintRevisions(); + } + + public static void asyncListBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listBlueprintRevisionsPagedCallable().futureCall(request); + // Do something. + for (Blueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java new file mode 100644 index 000000000000..585a412ea72f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/AsyncListBlueprintRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListBlueprintRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListBlueprintRevisionsPaged(); + } + + public static void asyncListBlueprintRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBlueprintRevisionsResponse response = + telcoAutomationClient.listBlueprintRevisionsCallable().call(request); + for (Blueprint element : response.getBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java new file mode 100644 index 000000000000..c9d1168e5c52 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListBlueprintRevisions { + + public static void main(String[] args) throws Exception { + syncListBlueprintRevisions(); + } + + public static void syncListBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java new file mode 100644 index 000000000000..9927ae0d0f89 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsBlueprintname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListBlueprintRevisionsBlueprintname { + + public static void main(String[] args) throws Exception { + syncListBlueprintRevisionsBlueprintname(); + } + + public static void syncListBlueprintRevisionsBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java new file mode 100644 index 000000000000..7d682c1c8ba0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprintrevisions/SyncListBlueprintRevisionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListBlueprintRevisionsString { + + public static void main(String[] args) throws Exception { + syncListBlueprintRevisionsString(); + } + + public static void syncListBlueprintRevisionsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprints.java new file mode 100644 index 000000000000..b7936f7ed040 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprints.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListBlueprints { + + public static void main(String[] args) throws Exception { + asyncListBlueprints(); + } + + public static void asyncListBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listBlueprintsPagedCallable().futureCall(request); + // Do something. + for (Blueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java new file mode 100644 index 000000000000..f93481b00f51 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/AsyncListBlueprintsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListBlueprintsPaged { + + public static void main(String[] args) throws Exception { + asyncListBlueprintsPaged(); + } + + public static void asyncListBlueprintsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBlueprintsResponse response = + telcoAutomationClient.listBlueprintsCallable().call(request); + for (Blueprint element : response.getBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprints.java new file mode 100644 index 000000000000..c80c5062f598 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprints.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListBlueprints { + + public static void main(String[] args) throws Exception { + syncListBlueprints(); + } + + public static void syncListBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blueprint element : telcoAutomationClient.listBlueprints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java new file mode 100644 index 000000000000..32882da145ad --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsOrchestrationclustername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListBlueprintsOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncListBlueprintsOrchestrationclustername(); + } + + public static void syncListBlueprintsOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsString.java new file mode 100644 index 000000000000..bff45a00cf12 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listblueprints/SyncListBlueprintsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListBlueprintsString { + + public static void main(String[] args) throws Exception { + syncListBlueprintsString(); + } + + public static void syncListBlueprintsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java new file mode 100644 index 000000000000..8f248727ad8a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListDeploymentRevisions { + + public static void main(String[] args) throws Exception { + asyncListDeploymentRevisions(); + } + + public static void asyncListDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listDeploymentRevisionsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java new file mode 100644 index 000000000000..1a8925388ff7 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/AsyncListDeploymentRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListDeploymentRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentRevisionsPaged(); + } + + public static void asyncListDeploymentRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDeploymentRevisionsResponse response = + telcoAutomationClient.listDeploymentRevisionsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java new file mode 100644 index 000000000000..1136be2c4545 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListDeploymentRevisions { + + public static void main(String[] args) throws Exception { + syncListDeploymentRevisions(); + } + + public static void syncListDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Deployment element : + telcoAutomationClient.listDeploymentRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java new file mode 100644 index 000000000000..20aa3dd3a3e5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsDeploymentname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListDeploymentRevisionsDeploymentname { + + public static void main(String[] args) throws Exception { + syncListDeploymentRevisionsDeploymentname(); + } + + public static void syncListDeploymentRevisionsDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java new file mode 100644 index 000000000000..750dde9d7ca4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeploymentrevisions/SyncListDeploymentRevisionsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListDeploymentRevisionsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentRevisionsString(); + } + + public static void syncListDeploymentRevisionsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeployments.java new file mode 100644 index 000000000000..0296209ef154 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeployments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListDeployments { + + public static void main(String[] args) throws Exception { + asyncListDeployments(); + } + + public static void asyncListDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listDeploymentsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java new file mode 100644 index 000000000000..2f7395d2cc99 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/AsyncListDeploymentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentsPaged(); + } + + public static void asyncListDeploymentsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDeploymentsResponse response = + telcoAutomationClient.listDeploymentsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeployments.java new file mode 100644 index 000000000000..215a045bd2c5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeployments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListDeployments { + + public static void main(String[] args) throws Exception { + syncListDeployments(); + } + + public static void syncListDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Deployment element : telcoAutomationClient.listDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java new file mode 100644 index 000000000000..a4a20bc3ba95 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsOrchestrationclustername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_Orchestrationclustername_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListDeploymentsOrchestrationclustername { + + public static void main(String[] args) throws Exception { + syncListDeploymentsOrchestrationclustername(); + } + + public static void syncListDeploymentsOrchestrationclustername() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_Orchestrationclustername_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsString.java new file mode 100644 index 000000000000..bc5cb33db523 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listdeployments/SyncListDeploymentsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentsString(); + } + + public static void syncListDeploymentsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java new file mode 100644 index 000000000000..30d46fde0a02 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlms.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListEdgeSlms { + + public static void main(String[] args) throws Exception { + asyncListEdgeSlms(); + } + + public static void asyncListEdgeSlms() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + telcoAutomationClient.listEdgeSlmsPagedCallable().futureCall(request); + // Do something. + for (EdgeSlm element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java new file mode 100644 index 000000000000..2ce370746f50 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/AsyncListEdgeSlmsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListEdgeSlmsPaged { + + public static void main(String[] args) throws Exception { + asyncListEdgeSlmsPaged(); + } + + public static void asyncListEdgeSlmsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListEdgeSlmsResponse response = telcoAutomationClient.listEdgeSlmsCallable().call(request); + for (EdgeSlm element : response.getEdgeSlmsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlms.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlms.java new file mode 100644 index 000000000000..c75ce6fbb04c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlms.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListEdgeSlms { + + public static void main(String[] args) throws Exception { + syncListEdgeSlms(); + } + + public static void syncListEdgeSlms() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java new file mode 100644 index 000000000000..fdd34e9dea22 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_Locationname_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListEdgeSlmsLocationname { + + public static void main(String[] args) throws Exception { + syncListEdgeSlmsLocationname(); + } + + public static void syncListEdgeSlmsLocationname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_Locationname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java new file mode 100644 index 000000000000..1bcf50c7734e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listedgeslms/SyncListEdgeSlmsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListEdgeSlmsString { + + public static void main(String[] args) throws Exception { + syncListEdgeSlmsString(); + } + + public static void syncListEdgeSlmsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java new file mode 100644 index 000000000000..cf12cfa24a83 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeployments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListHydratedDeployments { + + public static void main(String[] args) throws Exception { + asyncListHydratedDeployments(); + } + + public static void asyncListHydratedDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listHydratedDeploymentsPagedCallable().futureCall(request); + // Do something. + for (HydratedDeployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java new file mode 100644 index 000000000000..3b7cb7a461b1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/AsyncListHydratedDeploymentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListHydratedDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListHydratedDeploymentsPaged(); + } + + public static void asyncListHydratedDeploymentsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListHydratedDeploymentsResponse response = + telcoAutomationClient.listHydratedDeploymentsCallable().call(request); + for (HydratedDeployment element : response.getHydratedDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java new file mode 100644 index 000000000000..7e2bf745cb09 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeployments.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListHydratedDeployments { + + public static void main(String[] args) throws Exception { + syncListHydratedDeployments(); + } + + public static void syncListHydratedDeployments() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (HydratedDeployment element : + telcoAutomationClient.listHydratedDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java new file mode 100644 index 000000000000..c7a0e9c2b410 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsDeploymentname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListHydratedDeploymentsDeploymentname { + + public static void main(String[] args) throws Exception { + syncListHydratedDeploymentsDeploymentname(); + } + + public static void syncListHydratedDeploymentsDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + for (HydratedDeployment element : + telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java new file mode 100644 index 000000000000..54317b6b04b3 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listhydrateddeployments/SyncListHydratedDeploymentsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListHydratedDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListHydratedDeploymentsString(); + } + + public static void syncListHydratedDeploymentsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + for (HydratedDeployment element : + telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocations.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..0e4867dec4f6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListLocations_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocationsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..0cde0025b3ad --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + telcoAutomationClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListLocations_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/SyncListLocations.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..478f1e4d41b4 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : telcoAutomationClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListLocations_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java new file mode 100644 index 000000000000..420d0c3e3e08 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClusters.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListOrchestrationClusters { + + public static void main(String[] args) throws Exception { + asyncListOrchestrationClusters(); + } + + public static void asyncListOrchestrationClusters() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + telcoAutomationClient.listOrchestrationClustersPagedCallable().futureCall(request); + // Do something. + for (OrchestrationCluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java new file mode 100644 index 000000000000..bae969fdfa88 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/AsyncListOrchestrationClustersPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListOrchestrationClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListOrchestrationClustersPaged(); + } + + public static void asyncListOrchestrationClustersPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOrchestrationClustersResponse response = + telcoAutomationClient.listOrchestrationClustersCallable().call(request); + for (OrchestrationCluster element : response.getOrchestrationClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java new file mode 100644 index 000000000000..e1a484fe5cfa --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClusters.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_sync] +import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListOrchestrationClusters { + + public static void main(String[] args) throws Exception { + syncListOrchestrationClusters(); + } + + public static void syncListOrchestrationClusters() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (OrchestrationCluster element : + telcoAutomationClient.listOrchestrationClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java new file mode 100644 index 000000000000..429f43a1a9a6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_Locationname_sync] +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListOrchestrationClustersLocationname { + + public static void main(String[] args) throws Exception { + syncListOrchestrationClustersLocationname(); + } + + public static void syncListOrchestrationClustersLocationname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (OrchestrationCluster element : + telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_Locationname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java new file mode 100644 index 000000000000..52b583ead593 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listorchestrationclusters/SyncListOrchestrationClustersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListOrchestrationClustersString { + + public static void main(String[] args) throws Exception { + syncListOrchestrationClustersString(); + } + + public static void syncListOrchestrationClustersString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (OrchestrationCluster element : + telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java new file mode 100644 index 000000000000..f14f729db58c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprints.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncListPublicBlueprints { + + public static void main(String[] args) throws Exception { + asyncListPublicBlueprints(); + } + + public static void asyncListPublicBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.listPublicBlueprintsPagedCallable().futureCall(request); + // Do something. + for (PublicBlueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java new file mode 100644 index 000000000000..2daf15294a88 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/AsyncListPublicBlueprintsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncListPublicBlueprintsPaged { + + public static void main(String[] args) throws Exception { + asyncListPublicBlueprintsPaged(); + } + + public static void asyncListPublicBlueprintsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPublicBlueprintsResponse response = + telcoAutomationClient.listPublicBlueprintsCallable().call(request); + for (PublicBlueprint element : response.getPublicBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java new file mode 100644 index 000000000000..cbaec96ef6a0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprints.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_sync] +import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest; +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListPublicBlueprints { + + public static void main(String[] args) throws Exception { + syncListPublicBlueprints(); + } + + public static void syncListPublicBlueprints() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PublicBlueprint element : + telcoAutomationClient.listPublicBlueprints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java new file mode 100644 index 000000000000..cfc25a086535 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_Locationname_sync] +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListPublicBlueprintsLocationname { + + public static void main(String[] args) throws Exception { + syncListPublicBlueprintsLocationname(); + } + + public static void syncListPublicBlueprintsLocationname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PublicBlueprint element : + telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_Locationname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java new file mode 100644 index 000000000000..3b8dc2ab1f24 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/listpublicblueprints/SyncListPublicBlueprintsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.LocationName; +import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncListPublicBlueprintsString { + + public static void main(String[] args) throws Exception { + syncListPublicBlueprintsString(); + } + + public static void syncListPublicBlueprintsString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PublicBlueprint element : + telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java new file mode 100644 index 000000000000..ad288437c897 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/AsyncProposeBlueprint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncProposeBlueprint { + + public static void main(String[] args) throws Exception { + asyncProposeBlueprint(); + } + + public static void asyncProposeBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.proposeBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java new file mode 100644 index 000000000000..8f14002fdec1 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncProposeBlueprint { + + public static void main(String[] args) throws Exception { + syncProposeBlueprint(); + } + + public static void syncProposeBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.proposeBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java new file mode 100644 index 000000000000..db3240e36de9 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncProposeBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncProposeBlueprintBlueprintname(); + } + + public static void syncProposeBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.proposeBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java new file mode 100644 index 000000000000..98be234ba9f8 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/proposeblueprint/SyncProposeBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncProposeBlueprintString { + + public static void main(String[] args) throws Exception { + syncProposeBlueprintString(); + } + + public static void syncProposeBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.proposeBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java new file mode 100644 index 000000000000..2a777729a08e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/AsyncRejectBlueprint.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncRejectBlueprint { + + public static void main(String[] args) throws Exception { + asyncRejectBlueprint(); + } + + public static void asyncRejectBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.rejectBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java new file mode 100644 index 000000000000..88699b9271f5 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncRejectBlueprint { + + public static void main(String[] args) throws Exception { + syncRejectBlueprint(); + } + + public static void syncRejectBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder() + .setName( + BlueprintName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString()) + .build(); + Blueprint response = telcoAutomationClient.rejectBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java new file mode 100644 index 000000000000..e6a606a3f810 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintBlueprintname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_Blueprintname_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncRejectBlueprintBlueprintname { + + public static void main(String[] args) throws Exception { + syncRejectBlueprintBlueprintname(); + } + + public static void syncRejectBlueprintBlueprintname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + BlueprintName name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + Blueprint response = telcoAutomationClient.rejectBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_Blueprintname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java new file mode 100644 index 000000000000..3a5add1aea05 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rejectblueprint/SyncRejectBlueprintString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.BlueprintName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncRejectBlueprintString { + + public static void main(String[] args) throws Exception { + syncRejectBlueprintString(); + } + + public static void syncRejectBlueprintString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + .toString(); + Blueprint response = telcoAutomationClient.rejectBlueprint(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/AsyncRemoveDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/AsyncRemoveDeployment.java new file mode 100644 index 000000000000..c9c406cc3b08 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/AsyncRemoveDeployment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class AsyncRemoveDeployment { + + public static void main(String[] args) throws Exception { + asyncRemoveDeployment(); + } + + public static void asyncRemoveDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + ApiFuture future = + telcoAutomationClient.removeDeploymentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeployment.java new file mode 100644 index 000000000000..4ee8decac7c6 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeployment.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncRemoveDeployment { + + public static void main(String[] args) throws Exception { + syncRemoveDeployment(); + } + + public static void syncRemoveDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .build(); + telcoAutomationClient.removeDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java new file mode 100644 index 000000000000..666392746ec2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentDeploymentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_Deploymentname_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncRemoveDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncRemoveDeploymentDeploymentname(); + } + + public static void syncRemoveDeploymentDeploymentname() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + telcoAutomationClient.removeDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_Deploymentname_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java new file mode 100644 index 000000000000..7c1b4960b8eb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/removedeployment/SyncRemoveDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_String_sync] +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.Empty; + +public class SyncRemoveDeploymentString { + + public static void main(String[] args) throws Exception { + syncRemoveDeploymentString(); + } + + public static void syncRemoveDeploymentString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + telcoAutomationClient.removeDeployment(name); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_String_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java new file mode 100644 index 000000000000..eeef15d0babc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/AsyncRollbackDeployment.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncRollbackDeployment { + + public static void main(String[] args) throws Exception { + asyncRollbackDeployment(); + } + + public static void asyncRollbackDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .build(); + ApiFuture future = + telcoAutomationClient.rollbackDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java new file mode 100644 index 000000000000..a020ce872f1d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeployment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncRollbackDeployment { + + public static void main(String[] args) throws Exception { + syncRollbackDeployment(); + } + + public static void syncRollbackDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName( + DeploymentName.of( + "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString()) + .setRevisionId("revisionId-1507445162") + .build(); + Deployment response = telcoAutomationClient.rollbackDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java new file mode 100644 index 000000000000..82d6e2bfd742 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentDeploymentnameString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_DeploymentnameString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncRollbackDeploymentDeploymentnameString { + + public static void main(String[] args) throws Exception { + syncRollbackDeploymentDeploymentnameString(); + } + + public static void syncRollbackDeploymentDeploymentnameString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + DeploymentName name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + String revisionId = "revisionId-1507445162"; + Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_DeploymentnameString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java new file mode 100644 index 000000000000..17ea2996f54e --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/rollbackdeployment/SyncRollbackDeploymentStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_StringString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.DeploymentName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncRollbackDeploymentStringString { + + public static void main(String[] args) throws Exception { + syncRollbackDeploymentStringString(); + } + + public static void syncRollbackDeploymentStringString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + .toString(); + String revisionId = "revisionId-1507445162"; + Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_StringString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java new file mode 100644 index 000000000000..64b6f73bedfc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncSearchBlueprintRevisions { + + public static void main(String[] args) throws Exception { + asyncSearchBlueprintRevisions(); + } + + public static void asyncSearchBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.searchBlueprintRevisionsPagedCallable().futureCall(request); + // Do something. + for (Blueprint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java new file mode 100644 index 000000000000..87578f628683 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/AsyncSearchBlueprintRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncSearchBlueprintRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchBlueprintRevisionsPaged(); + } + + public static void asyncSearchBlueprintRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchBlueprintRevisionsResponse response = + telcoAutomationClient.searchBlueprintRevisionsCallable().call(request); + for (Blueprint element : response.getBlueprintsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java new file mode 100644 index 000000000000..3d916f827961 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncSearchBlueprintRevisions { + + public static void main(String[] args) throws Exception { + syncSearchBlueprintRevisions(); + } + + public static void syncSearchBlueprintRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Blueprint element : + telcoAutomationClient.searchBlueprintRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java new file mode 100644 index 000000000000..4f94dffa272f --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsOrchestrationclusternameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_OrchestrationclusternameString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncSearchBlueprintRevisionsOrchestrationclusternameString { + + public static void main(String[] args) throws Exception { + syncSearchBlueprintRevisionsOrchestrationclusternameString(); + } + + public static void syncSearchBlueprintRevisionsOrchestrationclusternameString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + for (Blueprint element : + telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_OrchestrationclusternameString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java new file mode 100644 index 000000000000..0683d621715a --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchblueprintrevisions/SyncSearchBlueprintRevisionsStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_StringString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncSearchBlueprintRevisionsStringString { + + public static void main(String[] args) throws Exception { + syncSearchBlueprintRevisionsStringString(); + } + + public static void syncSearchBlueprintRevisionsStringString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + String query = "query107944136"; + for (Blueprint element : + telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_StringString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java new file mode 100644 index 000000000000..8bb6cc61e1fb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisions.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class AsyncSearchDeploymentRevisions { + + public static void main(String[] args) throws Exception { + asyncSearchDeploymentRevisions(); + } + + public static void asyncSearchDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + telcoAutomationClient.searchDeploymentRevisionsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java new file mode 100644 index 000000000000..ac1799b8650c --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/AsyncSearchDeploymentRevisionsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_Paged_async] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.common.base.Strings; + +public class AsyncSearchDeploymentRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchDeploymentRevisionsPaged(); + } + + public static void asyncSearchDeploymentRevisionsPaged() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchDeploymentRevisionsResponse response = + telcoAutomationClient.searchDeploymentRevisionsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_Paged_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java new file mode 100644 index 000000000000..b7a7715e5e00 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncSearchDeploymentRevisions { + + public static void main(String[] args) throws Exception { + syncSearchDeploymentRevisions(); + } + + public static void syncSearchDeploymentRevisions() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent( + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString()) + .setQuery("query107944136") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Deployment element : + telcoAutomationClient.searchDeploymentRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java new file mode 100644 index 000000000000..0dd99bb702cd --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsOrchestrationclusternameString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_OrchestrationclusternameString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncSearchDeploymentRevisionsOrchestrationclusternameString { + + public static void main(String[] args) throws Exception { + syncSearchDeploymentRevisionsOrchestrationclusternameString(); + } + + public static void syncSearchDeploymentRevisionsOrchestrationclusternameString() + 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + OrchestrationClusterName parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + String query = "query107944136"; + for (Deployment element : + telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_OrchestrationclusternameString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java new file mode 100644 index 000000000000..e13ed5f57ef2 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/searchdeploymentrevisions/SyncSearchDeploymentRevisionsStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_StringString_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.OrchestrationClusterName; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; + +public class SyncSearchDeploymentRevisionsStringString { + + public static void main(String[] args) throws Exception { + syncSearchDeploymentRevisionsStringString(); + } + + public static void syncSearchDeploymentRevisionsStringString() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + String parent = + OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + .toString(); + String query = "query107944136"; + for (Deployment element : + telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_StringString_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java new file mode 100644 index 000000000000..390ea7ac6d98 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/AsyncUpdateBlueprint.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBlueprint { + + public static void main(String[] args) throws Exception { + asyncUpdateBlueprint(); + } + + public static void asyncUpdateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(Blueprint.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.updateBlueprintCallable().futureCall(request); + // Do something. + Blueprint response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java new file mode 100644 index 000000000000..4827c463c34d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprint.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBlueprint { + + public static void main(String[] args) throws Exception { + syncUpdateBlueprint(); + } + + public static void syncUpdateBlueprint() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(Blueprint.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Blueprint response = telcoAutomationClient.updateBlueprint(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java new file mode 100644 index 000000000000..1062bbf08850 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updateblueprint/SyncUpdateBlueprintBlueprintFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_BlueprintFieldmask_sync] +import com.google.cloud.telcoautomation.v1alpha1.Blueprint; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBlueprintBlueprintFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBlueprintBlueprintFieldmask(); + } + + public static void syncUpdateBlueprintBlueprintFieldmask() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + Blueprint blueprint = Blueprint.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Blueprint response = telcoAutomationClient.updateBlueprint(blueprint, updateMask); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_BlueprintFieldmask_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java new file mode 100644 index 000000000000..d0b687f2443b --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/AsyncUpdateDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateDeployment(); + } + + public static void asyncUpdateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.updateDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeployment.java new file mode 100644 index 000000000000..7c0c1edaa9dc --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeployment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateDeployment(); + } + + public static void syncUpdateDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Deployment response = telcoAutomationClient.updateDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java new file mode 100644 index 000000000000..1b34b6f08aeb --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_DeploymentFieldmask_sync] +import com.google.cloud.telcoautomation.v1alpha1.Deployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeploymentDeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDeploymentDeploymentFieldmask(); + } + + public static void syncUpdateDeploymentDeploymentFieldmask() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Deployment response = telcoAutomationClient.updateDeployment(deployment, updateMask); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_DeploymentFieldmask_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java new file mode 100644 index 000000000000..aa23d0d3c1c9 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/AsyncUpdateHydratedDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateHydratedDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateHydratedDeployment(); + } + + public static void asyncUpdateHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(HydratedDeployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + telcoAutomationClient.updateHydratedDeploymentCallable().futureCall(request); + // Do something. + HydratedDeployment response = future.get(); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_async] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java new file mode 100644 index 000000000000..17e8b84ac997 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeployment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_sync] +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHydratedDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateHydratedDeployment(); + } + + public static void syncUpdateHydratedDeployment() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(HydratedDeployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + HydratedDeployment response = telcoAutomationClient.updateHydratedDeployment(request); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java new file mode 100644 index 000000000000..8cc4ac523af0 --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomation/updatehydrateddeployment/SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_HydrateddeploymentFieldmask_sync] +import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment; +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHydratedDeploymentHydrateddeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateHydratedDeploymentHydrateddeploymentFieldmask(); + } + + public static void syncUpdateHydratedDeploymentHydrateddeploymentFieldmask() 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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + HydratedDeployment response = + telcoAutomationClient.updateHydratedDeployment(hydratedDeployment, updateMask); + } + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_HydrateddeploymentFieldmask_sync] diff --git a/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java new file mode 100644 index 000000000000..efa08e27068d --- /dev/null +++ b/java-telcoautomation/samples/snippets/generated/com/google/cloud/telcoautomation/v1alpha1/telcoautomationsettings/getorchestrationcluster/SyncGetOrchestrationCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.telcoautomation.v1alpha1.samples; + +// [START telcoautomation_v1alpha1_generated_TelcoAutomationSettings_GetOrchestrationCluster_sync] +import com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationSettings; +import java.time.Duration; + +public class SyncGetOrchestrationCluster { + + public static void main(String[] args) throws Exception { + syncGetOrchestrationCluster(); + } + + public static void syncGetOrchestrationCluster() 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 + TelcoAutomationSettings.Builder telcoAutomationSettingsBuilder = + TelcoAutomationSettings.newBuilder(); + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .setRetrySettings( + telcoAutomationSettingsBuilder + .getOrchestrationClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TelcoAutomationSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build(); + } +} +// [END telcoautomation_v1alpha1_generated_TelcoAutomationSettings_GetOrchestrationCluster_sync] diff --git a/pom.xml b/pom.xml index e7373fd61492..d77d2ba3a64b 100644 --- a/pom.xml +++ b/pom.xml @@ -162,6 +162,7 @@ java-storage-transfer java-talent java-tasks + java-telcoautomation java-texttospeech java-tpu java-trace diff --git a/versions.txt b/versions.txt index 249a74f3c1d1..8764117f5fd4 100644 --- a/versions.txt +++ b/versions.txt @@ -700,3 +700,8 @@ grpc-google-maps-places-v1:0.1.0:0.2.0-SNAPSHOT google-maps-fleetengine:0.1.0:0.2.0-SNAPSHOT proto-google-maps-fleetengine-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-maps-fleetengine-v1:0.1.0:0.2.0-SNAPSHOT +google-cloud-telcoautomation:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-telcoautomation-v1:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-telcoautomation-v1alpha1:0.0.0:0.0.1-SNAPSHOT +grpc-google-cloud-telcoautomation-v1:0.0.0:0.0.1-SNAPSHOT +grpc-google-cloud-telcoautomation-v1alpha1:0.0.0:0.0.1-SNAPSHOT